svga: use the debug callback to report issues to the state tracker
authorBrian Paul <brianp@vmware.com>
Fri, 4 Dec 2015 19:26:35 +0000 (12:26 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 7 Dec 2015 15:57:49 +0000 (08:57 -0700)
commit32a6e081c3c301d0d02cb0f3e4f848a143bfa220
tree5146fcc78ac91cb847eedd25a9739c3213f9f8f9
parent5effc3ae744807d03c6779040d752c74ed4abfbf
svga: use the debug callback to report issues to the state tracker

Use the new debug callback hook to report conformance, performance
and fallbacks to the state tracker.  The state tracker, in turn can
report this issues to the user via the GL_ARB_debug_output extension.

More issues can be reported in the future; this is just a start.

v2: remove conditionals around pipe_debug_message() calls since the
check is now done in the macro itself.
v3: remove unneeded dummy %s substitutions

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>,
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_draw_arrays.c
src/gallium/drivers/svga/svga_pipe_blend.c
src/gallium/drivers/svga/svga_pipe_misc.c
src/gallium/drivers/svga/svga_pipe_rasterizer.c
src/gallium/drivers/svga/svga_state_need_swtnl.c