<div dir="ltr">Bah... cc mesa-dev<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 2:04 PM, Jason Ekstrand <span dir="ltr"><<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>><br><br></div>I'll let Dave or Bas push though. :-)<br></div><div class="HOEnZb"><div class="h5"><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_inpla<wbr>ce().<br>
<br>
Signed-off-by: Pierre-Loup A. Griffais <<a href="mailto:pgriffais@valvesoftware.com" target="_blank">pgriffais@valvesoftware.com</a>><br>
---<br>
src/amd/vulkan/radv_meta_deco<wbr>mpress.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/amd/vulkan/radv_meta_dec<wbr>ompress.c b/src/amd/vulkan/radv_meta_dec<wbr>ompress.c<br>
index 47ef64d..9f262e6 100644<br>
--- a/src/amd/vulkan/radv_meta_dec<wbr>ompress.c<br>
+++ b/src/amd/vulkan/radv_meta_dec<wbr>ompress.c<br>
@@ -382,7 +382,7 @@ static void radv_process_depth_image_inpla<wbr>ce(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="m_-1912544295489638537HOEnZb"><font color="#888888">--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:xorg-devel@lists.x.org" target="_blank">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/xo<wbr>rg-devel</a><br>
Info: <a href="https://lists.x.org/mailman/listinfo/xorg-devel" rel="noreferrer" target="_blank">https://lists.x.org/mailman/li<wbr>stinfo/xorg-devel</a></font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>