summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_debug.c
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: set debug callback async flagNicolai Hähnle2016-07-081-2/+4
| | | | | Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* gallium: add async flag to pipe_debug_callbackNicolai Hähnle2016-07-081-1/+4
| | | | | | | v2: fix typo db -> cb Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* st/mesa: cache staging texture for glReadPixelsNicolai Hähnle2016-06-211-0/+1
| | | | | | v2: add ST_DEBUG flag for disabling (suggested by Ilia) Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
* gallium: add GREMEDY_string_markerRob Clark2016-01-211-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>
* st/mesa: make KHR_debug output independent of context creation flags (v2)Nicolai Hähnle2016-01-041-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>
* st/mesa: translate fragment shaders into TGSI when we get themMarek Olšák2015-10-091-1/+1
| | | | | | Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Brian Paul <brianp@vmware.com>
* st/mesa: add a debug option to compile shaders at link timeMarek Olšák2015-04-161-0/+1
| | | | | | | v2: fix crashes Tested-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
* st/mesa: add ST_DEBUG=wf option which enables wireframe renderingMarek Olšák2014-10-211-0/+1
| | | | Useful for tessellation.
* s/Tungsten Graphics/VMware/José Fonseca2014-01-171-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>
* st/mesa: add some simple buffer/draw debug codeBrian Paul2013-01-141-0/+2
| | | | Reviewed-by: José Fonseca <jfonseca@vmware.com>
* st/mesa: move fragment shader tgsi tokens into st_fp_variantMarek Olšák2012-01-251-1/+1
| | | | The TGSI code may vary depending on the clamp_color bit.
* st/mesa: s/varient/variantBrian Paul2010-12-161-2/+2
|
* st/mesa: remove stray semicolonsBrian Paul2010-08-061-1/+1
|
* st/mesa: Only get debug option onceJakob Bornecrantz2010-08-051-1/+3
|
* mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-101-1/+1
|
* gallium: silence all debug_named_value related warningsJoakim Sindholt2010-06-031-9/+9
|
* st/mesa: add missing debug entry for DEBUG_CONSTANTSBrian Paul2010-04-281-0/+1
|
* st/mesa: clean-up: use st_context() everywhereBrian Paul2010-04-231-1/+1
|
* st/mesa: rename state -> tgsi, updated commentsBrian Paul2010-02-121-2/+2
|
* mesa/st: refactor vertex and fragment shader translationKeith Whitwell2009-11-151-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.
* mesa/st: add ST_DEBUG environment variableKeith Whitwell2009-10-051-0/+28
| | | | | At last it's possible to turn on tgsi dumps and other debugging in the state tracker without modifying sources...
* Merge tgsi/exec and tgsi/util directories.José Fonseca2008-07-281-1/+1
|
* gallium: unused var silence warningBrian2008-03-201-1/+2
|
* gallium: remove semantic info from pipe_shader_stateBrian Paul2008-03-131-0/+2
| | | | Brian's patch to clean up the shader interfaces.
* gallium: rework CSO-related code in state trackerBrian2008-03-111-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...
* Code reorganization: update build.José Fonseca2008-02-151-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.
* Fix problems with vertex shaders and the private draw module.Brian2008-01-141-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.
* gallium: reorg tgsi directories.Michal Krol2007-11-231-1/+2
|
* print vertex input mappingBrian2007-10-181-0/+6
|
* debug functionsBrian2007-10-181-0/+60