[Mesa-dev] [PATCH V2 13/17] nouveau: Modified nouveau_bufferobj_data to pass ctx->Const.MinMapBufferAlignment as the alignment value to nouveau_bo_new.

Siavash Eliasi siavashserver at gmail.com
Thu Nov 28 00:56:39 PST 2013


---
 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);
 	}
-- 
1.8.4.2



More information about the mesa-dev mailing list