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 <ian.d.romanick@intel.com>
This commit is contained in:
Siavash Eliasi 2013-11-28 12:26:38 +03:30 committed by Ian Romanick
parent f772d51c25
commit d38867d80c

View 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);