radeon / r200: Use gl_constants::MinMapBufferAlignment as the alignment in radeon_bo...
authorSiavash Eliasi <siavashserver@gmail.com>
Thu, 28 Nov 2013 08:56:38 +0000 (12:26 +0330)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Jan 2014 16:11:39 +0000 (09:11 -0700)
These drivers do not support GL_ARB_map_buffer_range, so no special
treatment is needed for unaligned offsets in the mapping.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/radeon/radeon_buffer_objects.c

index 40a16c3984ccc6c76282451bf7b3f704e62575d5..ba7ab372790ac3845d42ceb5632802bbc27f2c6b 100644 (file)
@@ -103,7 +103,7 @@ radeonBufferData(struct gl_context * ctx,
         radeon_obj->bo = radeon_bo_open(radeon->radeonScreen->bom,
                                         0,
                                         size,
-                                        32,
+                                        ctx->Const.MinMapBufferAlignment,
                                         RADEON_GEM_DOMAIN_GTT,
                                         0);