From: Siavash Eliasi Date: Thu, 28 Nov 2013 08:56:38 +0000 (+0330) Subject: radeon / r200: Use gl_constants::MinMapBufferAlignment as the alignment in radeon_bo... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d38867d80c299350a9e67b519df46a8dfcb03eb9;p=mesa.git radeon / r200: Use gl_constants::MinMapBufferAlignment as the alignment in radeon_bo_open 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 --- diff --git a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c index 40a16c3984c..ba7ab372790 100644 --- a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c +++ b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c @@ -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);