<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 24 July 2017 at 11:44, Dave Airlie <span dir="ltr"><<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
Fixes CTS dEQP-VK.memory.pipeline_<wbr>barrier.host_write_uniform_<wbr>texel_buffer.1024<br>
on SI/CIK with radv.<br>
<br>
Fixes: f4e499ec (radv: add initial non-conformant radv vulkan driver)<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
---<br>
src/amd/vulkan/radv_image.c | 5 +++++<br>
1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c<br>
index 66cff52..2b81618 100644<br>
--- a/src/amd/vulkan/radv_image.c<br>
+++ b/src/amd/vulkan/radv_image.c<br>
@@ -181,6 +181,11 @@ radv_make_buffer_descriptor(<wbr>struct radv_device *device,<br>
state[0] = va;<br>
state[1] = S_008F04_BASE_ADDRESS_HI(va >> 32) |<br>
S_008F04_STRIDE(stride);<br>
+<br>
+ if (device->physical_device->rad_<wbr>info.chip_class != VI && stride) {<br>
+ range /= stride;<br>
+ }<br>
+<br></blockquote><div><br></div><div>Should this be < VI instead? Unless the same is required for GFX9?</div><div><br></div><div>Alex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
state[2] = range;<br>
state[3] = S_008F0C_DST_SEL_X(radv_map_<wbr>swizzle(desc->swizzle[0])) |<br>
S_008F0C_DST_SEL_Y(radv_map_<wbr>swizzle(desc->swizzle[1])) |<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>