anv/hiz: Perform HiZ resolves for all partial renders
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 8 Oct 2016 02:14:47 +0000 (19:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Oct 2016 22:39:41 +0000 (15:39 -0700)
commitc9eaf12de20ac4143fe79d42018bdbb5a391356f
tree5602e41da0176e016beffabc959b521eb3964d6d
parent58f2315c3819bbd6bab9ee62b0743309feac42cb
anv/hiz: Perform HiZ resolves for all partial renders

If we don't, we can end up with corruption in the portion of the depth
buffer that lies outside the render area when we do a HiZ resolve at the
end.  The only reason we weren't seeing this before was that all of the
meta-based clears such as VkCmdClearDepthStencilImage were internally using
HiZ so the HiZ buffer never truly got out-of-sync.  If the CTS ever tested
a depth upload (which doesn't care about HiZ) and then a partial render we
would have seen problems.  Soon, we will be using blorp to do depth clears
and it won't bother with HiZ so we would get CTS regressions without this.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/gen8_cmd_buffer.c