<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 11, 2017 at 5:55 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">Avoid the resolves that would be required if fast depth clears were<br>
allowed for such buffers.<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/anv_blorp.c | 9 +++++++++<br>
1 file changed, 9 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c<br>
index 5d410f7d86..4649ffd9db 100644<br>
--- a/src/intel/vulkan/anv_blorp.c<br>
+++ b/src/intel/vulkan/anv_blorp.c<br>
@@ -1270,6 +1270,15 @@ anv_cmd_buffer_clear_subpass(<wbr>struct anv_cmd_buffer *cmd_buffer)<br>
* ANV_HZ_FC_VAL.<br>
*/<br>
clear_with_hiz = false;<br>
+ } else if (gen == 8 &&<br>
+ anv_can_sample_with_hiz(cmd_<wbr>buffer->device->info.gen,<br>
+ iview->image->samples)) {<br>
+ /* Only gen9+ supports returning ANV_HZ_FC_VAL when sampling a<br>
+ * fast-cleared portion of a HiZ buffer. Testing has revealed<br>
+ * that Gen8 only supports returning 0.0f. Gens prior to gen8 do<br>
+ * not support this feature at all.<br>
+ */<br>
+ clear_with_hiz = false;<br></blockquote><div><br></div><div>Doesn't this mean that we should use a clear value of 0 on BDW and 1 on SKL+? I'm confused by this comment.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.11.0<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></div>