Module: Mesa
Branch: master
Commit: e029c91fd32f934161dad05ffc46a949c70c79db
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e029c91fd32f934161dad05ffc46a949c70c79db

Author: Maciej Cencora <m.cenc...@gmail.com>
Date:   Sat Aug  1 12:00:35 2009 +0200

radeon: handle debug versions of radeon_bo_open

---

 .../drivers/dri/radeon/radeon_buffer_objects.c     |   11 ++++++++++-
 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 1420636..6955692 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);
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to