<div dir="auto">Let me make sure I understand this patch correctly:  In the previous patch we made it so that we no longer unconditionally use HiZ for sampling so, when the image is in the general layout, we don't need a HiZ resolve because we are ignoring the HiZ buffer anyway.</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 27, 2017 5:22 PM, "Nanley Chery" <<a href="mailto:nanleychery@gmail.com">nanleychery@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Due to recent commits, the sampler now bypasses the auxiliary HiZ buffer<br>
when reading from a depth image subresource that is in the general<br>
layout. Remove this unneeded resolve.<br>
<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/genX_cmd_<wbr>buffer.c | 17 +----------------<br>
 1 file changed, 1 insertion(+), 16 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/genX_cmd_<wbr>buffer.c b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
index 2cb4468696..3d521a01f7 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -355,27 +355,12 @@ transition_depth_buffer(struct anv_cmd_buffer *cmd_buffer,<br>
       hiz_op = BLORP_HIZ_OP_HIZ_RESOLVE;<br>
    } else {<br>
       assert(hiz_enabled == enable_hiz);<br>
-      /* If the same buffer will be used, no resolves are necessary except for<br>
-       * the special case noted below.<br>
-       */<br>
+      /* If the same buffer will be used, no resolves are necessary. */<br>
       hiz_op = BLORP_HIZ_OP_NONE;<br>
    }<br>
<br>
    if (hiz_op != BLORP_HIZ_OP_NONE)<br>
       anv_gen8_hiz_op_resolve(cmd_<wbr>buffer, image, hiz_op);<br>
-<br>
-   /* Images that have sampling with HiZ enabled cause all shader sampling to<br>
-    * load data with the HiZ buffer. Therefore, in the case of transitioning to<br>
-    * the general layout - which currently routes all writes to the depth<br>
-    * buffer - we must ensure that the HiZ buffer remains consistent with the<br>
-    * depth buffer by performing an additional HIZ resolve if the operation<br>
-    * required by this transition was not already a HiZ resolve.<br>
-    */<br>
-   if (final_layout == VK_IMAGE_LAYOUT_GENERAL &&<br>
-       anv_can_sample_with_hiz(GEN_<wbr>GEN, image->samples) &&<br>
-       hiz_op != BLORP_HIZ_OP_HIZ_RESOLVE) {<br>
-      anv_gen8_hiz_op_resolve(cmd_<wbr>buffer, image, BLORP_HIZ_OP_HIZ_RESOLVE);<br>
-   }<br>
 }<br>
<br>
<br>
--<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>
</blockquote></div></div>