From d38867d80c299350a9e67b519df46a8dfcb03eb9 Mon Sep 17 00:00:00 2001 From: Siavash Eliasi Date: Thu, 28 Nov 2013 12:26:38 +0330 Subject: [PATCH] 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 --- src/mesa/drivers/dri/radeon/radeon_buffer_objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2