radv: fix border color swizzle for stencil-only format on GFX9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 23 Feb 2023 08:50:17 +0000 (09:50 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Mar 2023 15:10:33 +0000 (15:10 +0000)
commit7b2086d741920ec302d0e8830242f4555948583b
tree2d1ed0b708038965b16e627c4136c3f5d552391d
parent889c3ee6b8447cd4c89c76ea08dc3cb4c3e3bf69
radv: fix border color swizzle for stencil-only format on GFX9+

Swizzle of 8-bit stencil format is defined as _x__ but the hw expects
BC_SWIZZLE_XYZW.

Fixes dEQP-VK.pipeline.monolithic.sampler.border_swizzle.*s8_uint*.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21482>
src/amd/vulkan/radv_image.c