summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Cencora <m.cencora@gmail.com>2009-08-01 12:00:35 +0200
committerMaciej Cencora <m.cencora@gmail.com>2009-08-14 16:02:10 +0200
commite029c91fd32f934161dad05ffc46a949c70c79db (patch)
treed3cff5c90d3a8e0cf2b0874bcccc1ef0f9ba21a5
parent6bcbeb02d61442919a2ae4dfd642547e5f7b1439 (diff)
radeon: handle debug versions of radeon_bo_open
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_buffer_objects.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c
index 1420636863..69556923b6 100644
--- a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c
+++ b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c
@@ -100,13 +100,22 @@ radeonBufferData(GLcontext * ctx,
}
if (size != 0) {
+#ifdef RADEON_DEBUG_BO
+ radeon_obj->bo = radeon_bo_open(radeon->radeonScreen->bom,
+ 0,
+ size,
+ 32,
+ RADEON_GEM_DOMAIN_GTT,
+ 0,
+ "Radeon Named object");
+#else
radeon_obj->bo = radeon_bo_open(radeon->radeonScreen->bom,
0,
size,
32,
RADEON_GEM_DOMAIN_GTT,
0);
-
+#endif
if (data != NULL) {
radeon_bo_map(radeon_obj->bo, GL_TRUE);