On 12/04/2015 12:46 PM, Ilia Mirkin wrote:
On Fri, Dec 4, 2015 at 2:42 PM, Brian Paul <bri...@vmware.com> wrote:
+ if (templ->poly_smooth && svga->debug.callback.debug_message) {
+ /* note: we always need a % something in the message string */
Why? Did I mess something up?
If I write it without the dummy %s I get:
In file included from
../../../../src/gallium/auxiliary/util/u_inlines.h:36:0,
from svga_pipe_rasterizer.c:29:
svga_pipe_rasterizer.c: In function 'svga_create_rasterizer_state':
../../../../src/gallium/auxiliary/util/u_debug.h:273:40: error: expected
expression before ')' token
fmt, __VA_ARGS__); \
^
svga_pipe_rasterizer.c:357:7: note: in expansion of macro
'pipe_debug_message'
pipe_debug_message(&svga->debug.callback, CONFORMANCE,
^
BTW, right now this callback is only set for debug contexts. Perhaps
that was not an ideal decision... just an FYI though.
apitrace creates a debug context so that's the main thing for me right
now. But it might be nice if setting MESA_DEBUG would cause the
debug/info messages to be printed to stderr for those apps that don't
use GL_ARB_debug_output.
-Brian
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev