radv: Implement cosited_even sampling

Graphics / Mesa 3D Graphics Library / Mesa - Bas Nieuwenhuizen [basnieuwenhuizen.nl] - 6 May 2019 11:09 EDT

Apparently cosited_even was the required one instead of midpoint.

This adds slight offset of 0.5 pixels to the coordinates (+ we need the image size to convert to normalized coords)

Fixes: 91702374d5d "radv: Add ycbcr lowering pass."

5692351264d radv: Implement cosited_even sampling.
src/amd/vulkan/radv_formats.c | 1 +
src/amd/vulkan/radv_nir_lower_ycbcr_textures.c | 84 +++++++++++++++++++++++++-
2 files changed, 83 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share