<div dir="auto">R-b</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2019, 4:20 PM Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This doesn't fix anything known, but it's likely going to<br>
break if layerCount is ~0U.<br>
<br>
Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com" target="_blank" rel="noreferrer">samuel.pitoiset@gmail.com</a>><br>
---<br>
 src/amd/vulkan/radv_meta_fmask_expand.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/amd/vulkan/radv_meta_fmask_expand.c b/src/amd/vulkan/radv_meta_fmask_expand.c<br>
index c4cec58235f..7f3cbb2a6a6 100644<br>
--- a/src/amd/vulkan/radv_meta_fmask_expand.c<br>
+++ b/src/amd/vulkan/radv_meta_fmask_expand.c<br>
@@ -123,7 +123,7 @@ radv_expand_fmask_image_inplace(struct radv_cmd_buffer *cmd_buffer,<br>
  Â  Â  Â  radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer),<br>
  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â VK_PIPELINE_BIND_POINT_COMPUTE, pipeline);<br>
<br>
-  Â  Â  Â for (unsigned l = 0; l < subresourceRange->layerCount; l++) {<br>
+  Â  Â  Â for (unsigned l = 0; l < radv_get_layerCount(image, subresourceRange); l++) {<br>
  Â  Â  Â  Â  Â  Â  Â  struct radv_image_view iview;<br>
<br>
  Â  Â  Â  Â  Â  Â  Â  radv_image_view_init(&iview, device,<br>
-- <br>
2.22.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a></blockquote></div>