<div dir="ltr"><div>seems reasonable<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 4:33 PM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Depth buffers aren't allowed to be used as storage images.<br>
<br>
Fixes: 055ff2ec521 ("anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ")<br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
src/intel/vulkan/anv_image.c | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c<br>
index e2f7ca340f..27bd0f212c 100644<br>
--- a/src/intel/vulkan/anv_image.c<br>
+++ b/src/intel/vulkan/anv_image.c<br>
@@ -595,7 +595,7 @@ anv_CreateImageView(VkDevice _device,<br>
.surf = &surface->isl,<br>
.view = &view,<br>
.aux_surf = &image->aux_surface.isl,<br>
- .aux_usage = surf_usage,<br>
+ .aux_usage = image->aux_usage,<br>
.mocs = device->default_mocs);<br>
<br>
if (isl_has_matching_typed_<wbr>storage_image_format(&device-><wbr>info,<br>
@@ -612,7 +612,7 @@ anv_CreateImageView(VkDevice _device,<br>
.surf = &surface->isl,<br>
.view = &view,<br>
.aux_surf = &image->aux_surface.isl,<br>
- .aux_usage = surf_usage,<br>
+ .aux_usage = image->aux_usage,<br>
.mocs = device->default_mocs);<br>
} else {<br>
anv_fill_buffer_surface_state(<wbr>device, iview->storage_surface_state,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.1<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>