radv: fix detecting FMASK_DECOMPRESS/DCC_DECOMPRESS meta pipelines
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Apr 2023 12:03:56 +0000 (14:03 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 13 Apr 2023 09:00:38 +0000 (09:00 +0000)
commit0b4e7491f3f7528f251458f4e84657b16af6df12
tree4a4c0b366344a926f7a3cdc3ffc7c2ed6e606af2
parent8f024cdd4d3fc82012710cf0064ed452c4ed34ad
radv: fix detecting FMASK_DECOMPRESS/DCC_DECOMPRESS meta pipelines

With the on_demand shaders feature, meta pipelines are only created
when they are used, otherwise they are NULL. Though, inside secondary
cmdbuffers, the graphics pipeline might be also NULL. In this specific
case, radv_is_{dcc,fmask}_decompress_pipeline() would return
TRUE because these pipelines are NULL too...

This fixes flakes with tests that use secondary cmdbuffers with
TC-compat images.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22440>
src/amd/ci/radv-navi21-aco-flakes.txt
src/amd/vulkan/meta/radv_meta.h