mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
d38867d80c
commit
b9aaa96ec3
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue