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:
committed by
Ian Romanick
parent
d38867d80c
commit
b9aaa96ec3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user