Mesa (master): nouveau: Use gl_constants:: MinMapBufferAlignment as the alignment in nouveau_bo_new
Ian Romanick
idr at kemper.freedesktop.org
Wed Jan 29 16:17:34 UTC 2014
Module: Mesa
Branch: master
Commit: b9aaa96ec3a75cdb5ce57e3487441b113391acc9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9aaa96ec3a75cdb5ce57e3487441b113391acc9
Author: Siavash Eliasi <siavashserver at gmail.com>
Date: Thu Nov 28 12:44:39 2013 +0330
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 at intel.com>
---
src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c b/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c
index 717c0b8..dc16585 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);
}
More information about the mesa-commit
mailing list