<div dir="ltr"><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br><br></div>I'll let Dave or Bas push though. :-)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 12:57 PM, Pierre-Loup A. Griffais <span dir="ltr"><<a href="mailto:pgriffais@valvesoftware.com" target="_blank">pgriffais@valvesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Interpreting layerCount literally would try to create billions of image<br>
views in radv_process_depth_image_<wbr>inplace().<br>
<br>
Signed-off-by: Pierre-Loup A. Griffais <<a href="mailto:pgriffais@valvesoftware.com">pgriffais@valvesoftware.com</a>><br>
---<br>
 src/amd/vulkan/radv_meta_<wbr>decompress.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/amd/vulkan/radv_meta_<wbr>decompress.c b/src/amd/vulkan/radv_meta_<wbr>decompress.c<br>
index 47ef64d..9f262e6 100644<br>
--- a/src/amd/vulkan/radv_meta_<wbr>decompress.c<br>
+++ b/src/amd/vulkan/radv_meta_<wbr>decompress.c<br>
@@ -382,7 +382,7 @@ static void radv_process_depth_image_<wbr>inplace(struct radv_cmd_buffer *cmd_buffer,<br>
<br>
        radv_meta_save_graphics_reset_<wbr>vport_scissor(&saved_state, cmd_buffer);<br>
<br>
-       for (uint32_t layer = 0; layer < subresourceRange->layerCount; layer++) {<br>
+       for (uint32_t layer = 0; layer < radv_get_layerCount(image, subresourceRange); layer++) {<br>
                struct radv_image_view iview;<br>
<br>
                radv_image_view_init(&iview, cmd_buffer->device,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" rel="noreferrer" target="_blank">http://lists.x.org/archives/<wbr>xorg-devel</a><br>
Info: <a href="https://lists.x.org/mailman/listinfo/xorg-devel" rel="noreferrer" target="_blank">https://lists.x.org/mailman/<wbr>listinfo/xorg-devel</a></font></span></blockquote></div><br></div>