radv: fix HTILE metadata initialization in presence of subpass clears
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Jun 2018 11:34:10 +0000 (13:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Jun 2018 15:38:59 +0000 (17:38 +0200)
commit07cb1373a23042de6904e918419bfa3963695795
treec166a5a89fd99bbe0e90a87e21611226f97b4821
parenteebb65258d15af2b2fc50d3b64b5d2eafbffcb47
radv: fix HTILE metadata initialization in presence of subpass clears

If the driver ends up by performing a slow depthstencil clear,
the HTILE metadata won't be initialized correctly.

This fixes random VM faults on Polaris while running CTS
with Bas's runner. This doesn't seem to regress performance.

CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c