radv: do not use predication when the range doesn't cover the whole image
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 Jan 2021 17:39:52 +0000 (18:39 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 Jan 2021 15:42:22 +0000 (15:42 +0000)
commit8754f9e8f962bd7cdc55e69cd1edacf882bf2c9a
tree130cb0310dfca4ef87b2fc48ecf84e1c4d94eca3
parent5420ab9cdf944902dc608570d03d493584753ce0
radv: do not use predication when the range doesn't cover the whole image

The predication is based on the mip level, so if the image has layers
and DCC is enabled, it should only be used if the range of layers
covers the whole image.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8368>
src/amd/vulkan/radv_meta_fast_clear.c