radv: fix updating bound fast ds clear values with different aspects
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 Oct 2019 20:17:43 +0000 (22:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 22 Oct 2019 09:16:13 +0000 (11:16 +0200)
commita13320370ef4b668ace96ecba7eb0f8591af6f79
tree57cbb71ed6f045e4c2724066acaf95636163ebc4
parent97e6d34e66304493c7b9249135e59219587de4df
radv: fix updating bound fast ds clear values with different aspects

On GFX9, the driver is able to do an optimized fast depth/stencil
clear with only one aspect (ie. clear the stencil part of a
depth/stencil image). When this happens, the driver should only
update the clear values of the given aspect.

Note that it's currently only supported on GFX9 but I have some
local patches that extend this optimized path for other gens.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1967
Cc: 19.2 <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