diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2013-02-07 19:21:36 -0800 |
---|---|---|
committer | Andreas Boll <andreas.boll.dev@gmail.com> | 2013-04-17 12:22:34 +0200 |
commit | 067ff62856416a80e9b0d6496cbca4beca8c8b25 (patch) | |
tree | 00e15928c8c5c00234f678bb3695d233abaf1d11 | |
parent | 19fdb77334832e0ac5196bbb4e88f1c564ba3283 (diff) |
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@intel.com
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit f29ab4ece5b6a0321f5e4a6fafb7ecacf7214044)
-rw-r--r-- | 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 a6a5e4f1b3..e1dfde5e56 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -388,6 +388,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"); |