radv: Handle unnormalized samplers in YCbCr lowering
authorJoshua Ashton <joshua@froggi.es>
Sat, 15 May 2021 13:43:14 +0000 (14:43 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 15 May 2021 18:15:52 +0000 (18:15 +0000)
commit855cb78d4631afeb51291cf1f2f936841d52e8d4
treecc596ca3271074c5fca50f46450dec5ee9340870
parentfc765d6a8d059a217104375d8f6f412aada68b15
radv: Handle unnormalized samplers in YCbCr lowering

We need to divide these by their divisors and special-case COSITED_EVEN.

Fixes NV12 compositing in Gamescope.

Fixes: 91702374 ("radv: Add ycbcr lowering pass.")
Cc: mesa-stable
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10816>
src/amd/vulkan/radv_nir_lower_ycbcr_textures.c