radv/llvm: fix enabled_channels for compressed exports
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 11 Mar 2021 11:40:51 +0000 (11:40 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Thu, 11 Mar 2021 13:54:18 +0000 (13:54 +0000)
commit35fe62dad10cdeff0af39009185c85aa59db6a76
treea34c70bf36ccd967e4f6c8284fc7fe3c2a42dc95
parent341dd9d834c994d2ea4ccafeda058813a4ae4447
radv/llvm: fix enabled_channels for compressed exports

The old values seemed to work fine, but the ISA docs recommend 0x0,0x3,0xc
and 0xf:

COMPR==1: export half-dword enable. Valid values are: 0x0,3,c,f
[0] enables VSRC0 : R,G from one VGPR (R in low bits, G high)
[2] enables VSRC1 : B,A from one VGPR (B in low bits, A high)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9459>
src/amd/vulkan/radv_nir_to_llvm.c