summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorSiavash Eliasi <[email protected]>2013-11-28 12:26:39 +0330
committerIan Romanick <[email protected]>2014-01-29 09:11:39 -0700
commitb9aaa96ec3a75cdb5ce57e3487441b113391acc9 (patch)
tree897caedb1ee068beecbc4a5abb5ebcfa4ad579e9 /src/mesa/drivers
parentd38867d80c299350a9e67b519df46a8dfcb03eb9 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c b/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c
index 717c0b8f11d..dc165853759 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c
@@ -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);
}