panfrost: fix YUV center information for 422

It turns out that the change from CENTER_Y to CENTER_X for
422 YUV didn't actually happen until generation 14 of the
hardware, not generation 10 as some documents claimed. This
fixes the failing piglit tests ext_image_dma_buf_import-sample_yuv
associated with 422 formats (which apparently we aren't running on CI).

Fixes: 23aa784c
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33516>
This commit is contained in:
Eric R. Smith 2025-02-12 12:36:35 -04:00 committed by Marge Bot
parent 2e48bcf064
commit c7fed8b053

View file

@ -137,7 +137,7 @@ const struct pan_blendable_format
#define YUV_NO_SWAP (0)
#define YUV_SWAP (1)
#if PAN_ARCH <= 9
#if PAN_ARCH < 14
#define MALI_YUV_CR_SITING_CENTER_422 (MALI_YUV_CR_SITING_CENTER_Y)
#else
#define MALI_YUV_CR_SITING_CENTER_422 (MALI_YUV_CR_SITING_CENTER_X)