summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_debug.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21mesa/st: migrate debug callback code into mesaDave Airlie1-78/+0
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14632>
2022-01-21mesa/st: remove st_context from debug callbackDave Airlie1-7/+7
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14632>
2021-02-09mesa/st: Always precompile the first shader variant.Eric Anholt1-1/+0
Every driver wants the chance to see the default variant of the shader in the hopes of avoiding draw-time shader compiles, even if they have some NOS compiled into the shader by st/mesa. Before, every driver had to avoid st/mesa lowering options to get this behavior, even if they would like to have the shared lowering code, and some drivers were just missing the behavior because nobody had debugged that it was missing yet. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8601>
2020-12-07st/mesa: remove less useful debug options in hot pathsMarek Olšák1-6/+0
Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7826>
2020-11-25Revert "mesa/st: Use do_once for one-time init"Erik Faye-Lund1-3/+1
This reverts commit bcb2981e145f0c2a54a637e20b6c55eaf316c04f. Acked-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7760>
2020-11-24mesa/st: Use do_once for one-time initRob Clark1-1/+3
Also, since there is a second call-path into st_init_extensions() from get_version(), add an extra st_debug_init() call. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7644>
2019-11-11st/mesa: remove unused TGSI-only debug printing functionsMarek Olšák1-32/+0
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2019-11-11st/mesa: add ST_DEBUG=nir to print NIR shadersMarek Olšák1-0/+1
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2019-11-11st/mesa: rename DEBUG_TGSI -> DEBUG_PRINT_IRMarek Olšák1-1/+1
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2019-10-22st/mesa: replace pipe_shader_state with tgsi_token* in st_vp_variantMarek Olšák1-1/+1
we don't need more than that Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2019-10-17st/mesa: rename st_xxx_program::tgsi to stateMarek Olšák1-2/+2
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2019-05-13st/mesa: enable the ST_DEBUG env var in release and debugoptimized buildsMarek Olšák1-4/+0
Useful for dumping shaders. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2019-03-14mesa: rename logging functions to reflect that they format stringsMark Janes1-1/+1
In preparation for the definition of a function to log a formatted string. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
2016-10-26st/mesa/r200/i915/i965: eliminate gl_fragment_programTimothy Arceri1-2/+2
Here we move OriginUpperLeft and PixelCenterInteger into gl_program all other fields have been replace by shader_info. V2: Don't use anonymous union/structs to hold vertex/fragment fields suggested by Ian. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-10-26mesa/i965/i915/r200: eliminate gl_vertex_programTimothy Arceri1-2/+2
Here we move the only field in gl_vertex_program to the ARB program fields in gl_program. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-07-08st/mesa: set debug callback async flagNicolai Hähnle1-2/+4
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2016-07-08gallium: add async flag to pipe_debug_callbackNicolai Hähnle1-1/+4
v2: fix typo db -> cb Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2016-06-21st/mesa: cache staging texture for glReadPixelsNicolai Hähnle1-0/+1
v2: add ST_DEBUG flag for disabling (suggested by Ilia) Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
2016-01-21gallium: add GREMEDY_string_markerRob Clark1-0/+1
Since the GREMEDY extensions are normally only exposed by the gremedy debugger (and could possibly trigger debug paths in the app), we don't expose the extension by default, but instead only with ST_DEBUG=gremedy. Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-01-04st/mesa: make KHR_debug output independent of context creation flags (v2)Nicolai Hähnle1-0/+72
Instead, keep track of GL_DEBUG_OUTPUT and (un)install the pipe_debug_callback accordingly. Hardware drivers can still use the absence of the callback to skip more expensive operations in the normal case, and users can no longer be surprised by the need to set the debug flag at context creation time. v2: - re-add the proper initialization of debug contexts (Ilia Mirkin) - silence a potential warning (Ilia Mirkin) Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-10-09st/mesa: translate fragment shaders into TGSI when we get themMarek Olšák1-1/+1
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Brian Paul <brianp@vmware.com>
2015-04-16st/mesa: add a debug option to compile shaders at link timeMarek Olšák1-0/+1
v2: fix crashes Tested-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2014-10-21st/mesa: add ST_DEBUG=wf option which enables wireframe renderingMarek Olšák1-0/+1
Useful for tessellation.
2014-01-17s/Tungsten Graphics/VMware/José Fonseca1-2/+2
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/alanh@tungstengraphics.com/alanh@vmware.com/ s/jens@tungstengraphics.com/jowen@vmware.com/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g s/keithw\?@tungstengraphics.com/keithw@vmware.com/g s/michel@tungstengraphics.com/daenzer@vmware.com/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/zack@tungstengraphics.com/zackr@vmware.com/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-14st/mesa: add some simple buffer/draw debug codeBrian Paul1-0/+2
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-01-25st/mesa: move fragment shader tgsi tokens into st_fp_variantMarek Olšák1-1/+1
The TGSI code may vary depending on the clamp_color bit.
2010-12-16st/mesa: s/varient/variantBrian Paul1-2/+2
2010-08-06st/mesa: remove stray semicolonsBrian Paul1-1/+1
2010-08-05st/mesa: Only get debug option onceJakob Bornecrantz1-1/+3
2010-06-10mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul1-1/+1
2010-06-03gallium: silence all debug_named_value related warningsJoakim Sindholt1-9/+9
2010-04-28st/mesa: add missing debug entry for DEBUG_CONSTANTSBrian Paul1-0/+1
2010-04-23st/mesa: clean-up: use st_context() everywhereBrian Paul1-1/+1
2010-02-12st/mesa: rename state -> tgsi, updated commentsBrian Paul1-2/+2
2009-11-15mesa/st: refactor vertex and fragment shader translationKeith Whitwell1-1/+2
Translate vertex shaders independently of fragment shaders. Previously tried to make fragment shader semantic indexes always start at zero and exclude holes. This was unnecessary but meant that vertex shader translation had to be adjusted to take this into account. Now use a fixed scheme for labelling special FS input semantics (color, etc), and another fixed scheme for the generics. With this, vertex shaders can be translated independently of the bound fragment shader, assuming mesa has done its own job and ensured that the vertex shader provides at least the inputs the fragment shader is looking for. The state-tracker didn't attempt to do anything about this previously, so it shouldn't be needed now.
2009-10-05mesa/st: add ST_DEBUG environment variableKeith Whitwell1-0/+28
At last it's possible to turn on tgsi dumps and other debugging in the state tracker without modifying sources...
2008-07-28Merge tgsi/exec and tgsi/util directories.José Fonseca1-1/+1
2008-03-20gallium: unused var silence warningBrian1-1/+2
2008-03-13gallium: remove semantic info from pipe_shader_stateBrian Paul1-0/+2
Brian's patch to clean up the shader interfaces.
2008-03-11gallium: rework CSO-related code in state trackerBrian1-3/+3
Use the code in cso_context.c rather than st_cache.c. Basically, binding of state objects now goes through the CSO module. But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're not cached by the CSO module at this time. Also, update softpipe driver to handle NULL state objects in various places. This happens during context destruction. May need to update other drivers...
2008-02-15Code reorganization: update build.José Fonseca1-2/+2
Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
2008-01-14Fix problems with vertex shaders and the private draw module.Brian1-2/+2
The CSO returned by pipe->create_vs_state() can't be passed to the private draw module. That was causing glRasterPos to blow up. Add a 'draw_shader' field to st_vertex_program for use with the private draw module. Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
2007-11-23gallium: reorg tgsi directories.Michal Krol1-1/+2
2007-10-18print vertex input mappingBrian1-0/+6
2007-10-18debug functionsBrian1-0/+60