diff options
author | Brian Paul <[email protected]> | 2013-01-14 15:18:13 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-01-14 18:15:41 -0700 |
commit | f5eb1b123fdd64f713c1226f14758de4690c6fc2 (patch) | |
tree | cee68112a13fc8d74c53e23d3f277db66b34c44f /src/mesa/state_tracker/st_draw.c | |
parent | cb6ef3d112fa48fd3960583fd39c7ab11052c54f (diff) |
st/mesa: add some simple buffer/draw debug code
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 7de2bb9b853..de539ca5a6f 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -48,6 +48,7 @@ #include "st_atom.h" #include "st_cb_bufferobjects.h" #include "st_cb_xformfb.h" +#include "st_debug.h" #include "st_draw.h" #include "st_program.h" @@ -254,6 +255,14 @@ st_draw_vbo(struct gl_context *ctx, info.max_index = info.start + info.count - 1; } + if (ST_DEBUG & DEBUG_DRAW) { + debug_printf("st/draw: mode %s start %u count %u indexed %d\n", + u_prim_name(info.mode), + info.start, + info.count, + info.indexed); + } + if (info.count_from_stream_output) { cso_draw_vbo(st->cso_context, &info); } |