<div dir="ltr">On 7 February 2013 19:25, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>

<br>
This matches the behavior of the Windows driver, but a bspec reference<br>
should would be nice.<br></blockquote><div><br></div><div>I believe this is the bspec reference you're looking for:<br><br>From the Ivy Bridge PRM, Vol4 Part1, p. 68 (2.12.2.1 SURFACE_STATE for most messages):<br><br>
    "Certain message types used to access surfaces have more stringent alignment requirements. Please refer to the specific message documentation for additional restrictions."<br><br>We use the "OWord block read" message to read uniforms, so we have to refer to p. 233 (3.9.3 OWord Block Read/Write), which says:<br>
<br>    "The surface base address must be OWord-aligned."<br><br></div><div>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
NOTE: This is a candidate for the 9.0 and 9.1 branches.<br>
<br>
Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
---<br>
 src/mesa/drivers/dri/i965/brw_context.c | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c<br>
index 1201565..9aa6abe 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_context.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_context.c<br>
@@ -360,6 +360,7 @@ brwCreateContext(int api,<br>
<br>
    ctx->Const.NativeIntegers = true;<br>
    ctx->Const.UniformBooleanTrue = 1;<br>
+   ctx->Const.UniformBufferOffsetAlignment = 16;<br>
<br>
    ctx->Const.ForceGLSLExtensionsWarn = driQueryOptionb(&intel->optionCache, "force_glsl_extensions_warn");<br>
<span class=""><font color="#888888"><br>
--<br>
1.7.11.7<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>