<div dir="auto">I assume Pascal is the same as Maxwell. Using tic, it gets 16...</div><div class="gmail_extra"><br><div class="gmail_quote">On Apr 10, 2017 5:32 AM, "Samuel Pitoiset" <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How about Pascal?<br>
<br>
On 04/08/2017 09:10 PM, Ilia Mirkin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We currently don't pass the low byte of the address via the surface<br>
info, so in order to work with images, these have to implicitly be<br>
aligned to 256. The proprietary driver also doesn't go out of its way to<br>
provide lower alignment.<br>
<br>
Fixes GL45-CTS.texture_buffer.textur<wbr>e_buffer_texture_buffer_range<br>
<br>
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" target="_blank">imirkin@alum.mit.edu</a>><br>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank">mesa-stable@lists.freedesktop.<wbr>org</a><br>
---<br>
  src/gallium/drivers/nouveau/nv<wbr>c0/nvc0_screen.c | 2 +-<br>
  1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/drivers/nouveau/<wbr>nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/<wbr>nvc0/nvc0_screen.c<br>
index 543857a..fc44d32 100644<br>
--- a/src/gallium/drivers/nouveau/<wbr>nvc0/nvc0_screen.c<br>
+++ b/src/gallium/drivers/nouveau/<wbr>nvc0/nvc0_screen.c<br>
@@ -147,7 +147,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)<br>
     case PIPE_CAP_CONSTANT_BUFFER_OFFSE<wbr>T_ALIGNMENT:<br>
        return 256;<br>
     case PIPE_CAP_TEXTURE_BUFFER_OFFSET<wbr>_ALIGNMENT:<br>
-      if (class_3d < NVE4_3D_CLASS)<br>
+      if (class_3d < GM107_3D_CLASS)<br>
           return 256; /* IMAGE bindings require alignment to 256 */<br>
        return 16;<br>
     case PIPE_CAP_SHADER_BUFFER_OFFSET_<wbr>ALIGNMENT:<br>
<br>
</blockquote>
</blockquote></div></div>