<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 31, 2016 at 8:29 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">From: Chad Versace <<a href="mailto:chad.versace@intel.com">chad.versace@intel.com</a>><br>
<br>
Nanley Chery (amend):<br>
 - Remove wip! tag<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_private.h | 10 ++++++++++<br>
 1 file changed, 10 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>private.h b/src/intel/vulkan/anv_<wbr>private.h<br>
index 8964e3f..5718a19 100644<br>
--- a/src/intel/vulkan/anv_<wbr>private.h<br>
+++ b/src/intel/vulkan/anv_<wbr>private.h<br>
@@ -1765,6 +1765,16 @@ struct anv_surface *<br>
 anv_image_get_surface_for_<wbr>aspect_mask(struct anv_image *image,<br>
                                       VkImageAspectFlags aspect_mask);<br>
<br>
+static inline bool<br>
+anv_image_has_hiz(const struct anv_image *image)<br>
+{<br>
+   /* We must check the usage because anv_image::hiz_surface belongs to<br>
+    * a union.<br>
+    */<br>
+   return (image->usage & VK_IMAGE_USAGE_DEPTH_STENCIL_<wbr>ATTACHMENT_BIT) &&<br></blockquote><div><br></div><div>Would checking (image->aspects & VK_IMAGE_ASPECT_DEPTH_BIT) be more appropriate?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+          image->hiz_surface.isl.size > 0;<br>
+}<br>
+<br>
 void anv_image_view_init(struct anv_image_view *view,<br>
                          struct anv_device *device,<br>
                          const VkImageViewCreateInfo* pCreateInfo,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.3<br>
<br>
</font></span></blockquote></div><br></div></div>