nouveau: Use gl_constants::MinMapBufferAlignment as the alignment in nouveau_bo_new

This driver does 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:39 +03:30 committed by Ian Romanick
parent d38867d80c
commit b9aaa96ec3

View file

@ -95,7 +95,8 @@ nouveau_bufferobj_data(struct gl_context *ctx, GLenum target, GLsizeiptrARB size
} else {
/* Get a hardware BO */
ret = nouveau_bo_new(context_dev(ctx),
NOUVEAU_BO_GART | NOUVEAU_BO_MAP, 0,
NOUVEAU_BO_GART | NOUVEAU_BO_MAP,
ctx->Const.MinMapBufferAlignment,
size, NULL, &nbo->bo);
assert(!ret);
}