From: Maciej Cencora Date: Sat, 1 Aug 2009 10:00:35 +0000 (+0200) Subject: radeon: handle debug versions of radeon_bo_open X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e029c91fd32f934161dad05ffc46a949c70c79db;p=mesa.git radeon: handle debug versions of radeon_bo_open --- diff --git a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c index 14206368636..69556923b66 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);