radv,aco: don't include FMASK in the storage descriptor
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 4 Aug 2021 17:19:20 +0000 (18:19 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 7 Oct 2021 15:36:39 +0000 (15:36 +0000)
commit1fb63367a8ca0b0fc64e278a8312b74b0ddde415
tree69fe29020de281eee6012e95096cb44e1f1bbf7f
parent1e9f72ffbe181369eb3e8f35d91d6ec4355ffc07
radv,aco: don't include FMASK in the storage descriptor

We perform a FMASK expand when transitioning to GENERAL or TRANSFER_DST
layout, so storage images always have an identity FMASK.

radeonsi doesn't appear to expand the FMASK for read-only storage images,
so the sample index adjustment is still needed there.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12214>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/llvm/ac_nir_to_llvm.c
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_nir_to_llvm.c