Mesa (9.1): i965: Set UniformBufferOffsetAlignment to sizeof(vec4)
Ian Romanick
idr at kemper.freedesktop.org
Fri Feb 8 05:20:36 UTC 2013
Module: Mesa
Branch: 9.1
Commit: a48e5526c21b217d0977a2d9d8927f8860af7d66
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a48e5526c21b217d0977a2d9d8927f8860af7d66
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Thu Feb 7 19:21:36 2013 -0800
i965: Set UniformBufferOffsetAlignment to sizeof(vec4)
This matches the behavior of the Windows driver, but a bspec reference
should would be nice.
NOTE: This is a candidate for the 9.0 and 9.1 branches.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit f29ab4ece5b6a0321f5e4a6fafb7ecacf7214044)
---
src/mesa/drivers/dri/i965/brw_context.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 1201565..9aa6abe 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -360,6 +360,7 @@ brwCreateContext(int api,
ctx->Const.NativeIntegers = true;
ctx->Const.UniformBooleanTrue = 1;
+ ctx->Const.UniformBufferOffsetAlignment = 16;
ctx->Const.ForceGLSLExtensionsWarn = driQueryOptionb(&intel->optionCache, "force_glsl_extensions_warn");
More information about the mesa-commit
mailing list