i965: Set UniformBufferOffsetAlignment to sizeof(vec4)
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Feb 2013 03:21:36 +0000 (19:21 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Feb 2013 05:16:08 +0000 (21:16 -0800)
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@intel.com
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c

index 9b9d3103b49efc604873f98cf50f1281835300bc..19497e9e239aec774c947b0f83a9c5d2767bf6f3 100644 (file)
@@ -376,6 +376,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");