Commit 0c1d759d authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

this fixes ESO shadow pass ground corruption on Arc A750

don't know why yet.

in the colour pass where the rendering corruption first appears, the
depth resource was used as a "PS - Texture".  Immediately afterwards
there's a Barrier where it goes from

	VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL =>
	VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL

immediately following that there's a Clear from vkCmdBeginRendering
which appears to be a HiZ clear.  Things work when using AUX_USAGE_HIZ
but AUX_USAGE_HIZ_CCS_WT (XXX: and AUX_USAGE_HIZ_CCS?) doesn't work.

current thinking is this is related to 14015264727 where we had to add
HDC and DC flushes to CCS and MCS fast clears.  Maybe HiZ clears with
CCS also have similar problems?  The docs don't appear to indicate that
but the docs were also wrong for color clears until recently...
parent 939a3fc8
Pipeline #738528 waiting for manual action with stages
......@@ -1597,6 +1597,7 @@ anv_image_hiz_clear(struct anv_cmd_buffer *cmd_buffer,
* tile cache just in case.
*/
anv_add_pending_pipe_bits(cmd_buffer,
ANV_PIPE_DATA_CACHE_FLUSH_BIT |
ANV_PIPE_DEPTH_CACHE_FLUSH_BIT |
ANV_PIPE_TILE_CACHE_FLUSH_BIT,
"before clear hiz_ccs_wt");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment