radeon: handle debug versions of radeon_bo_open
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 1 Aug 2009 10:00:35 +0000 (12:00 +0200)
committerMaciej Cencora <m.cencora@gmail.com>
Fri, 14 Aug 2009 14:02:10 +0000 (16:02 +0200)
src/mesa/drivers/dri/radeon/radeon_buffer_objects.c

index 142063686362e161e2545ee66f11e6e7bd0d89ec..69556923b667e6cb6faf1ebc94724e2f3739fc86 100644 (file)
@@ -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);