summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiavash Eliasi <[email protected]>2013-11-28 12:26:38 +0330
committerIan Romanick <[email protected]>2014-01-29 09:11:39 -0700
commitd38867d80c299350a9e67b519df46a8dfcb03eb9 (patch)
tree177ca977b86b5d01977f28f638eb2095e381186f
parentf772d51c256b9e6458a4f9cf2021eadef34c8313 (diff)
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 <[email protected]>
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_buffer_objects.c2
1 files changed, 1 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 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);