summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_bufferobjects.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-01-14 15:18:13 -0700
committerBrian Paul <[email protected]>2013-01-14 18:15:41 -0700
commitf5eb1b123fdd64f713c1226f14758de4690c6fc2 (patch)
treecee68112a13fc8d74c53e23d3f277db66b34c44f /src/mesa/state_tracker/st_cb_bufferobjects.c
parentcb6ef3d112fa48fd3960583fd39c7ab11052c54f (diff)
st/mesa: add some simple buffer/draw debug code
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bufferobjects.c')
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index cf291c1c176..d5167352c40 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -38,6 +38,7 @@
#include "st_context.h"
#include "st_cb_bufferobjects.h"
+#include "st_debug.h"
#include "pipe/p_context.h"
#include "pipe/p_defines.h"
@@ -230,6 +231,10 @@ st_bufferobj_data(struct gl_context *ctx,
pipe_resource_reference( &st_obj->buffer, NULL );
+ if (ST_DEBUG & DEBUG_BUFFER) {
+ debug_printf("Create buffer size %lu bind 0x%x\n", size, bind);
+ }
+
if (size != 0) {
st_obj->buffer = pipe_buffer_create(pipe->screen, bind,
pipe_usage, size);