diff options
author | Maciej Cencora <[email protected]> | 2009-08-01 12:00:35 +0200 |
---|---|---|
committer | Maciej Cencora <[email protected]> | 2009-08-14 16:02:10 +0200 |
commit | e029c91fd32f934161dad05ffc46a949c70c79db (patch) | |
tree | d3cff5c90d3a8e0cf2b0874bcccc1ef0f9ba21a5 /src | |
parent | 6bcbeb02d61442919a2ae4dfd642547e5f7b1439 (diff) |
radeon: handle debug versions of radeon_bo_open
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/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 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); |