From f332128ccf117b29c537bb792cca9b98f3afcee2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 4 Sep 2024 09:35:13 -0400 Subject: [PATCH] zink: swap sampler conversion conditional with yuv check this is more useful Part-of: --- src/gallium/drivers/zink/zink_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 58b738b269b..a40b625c31d 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -1847,7 +1847,7 @@ zink_resource_get_param(struct pipe_screen *pscreen, struct pipe_context *pctx, default: unreachable("how many planes you got in this thing?"); } - } else if (res->obj->sampler_conversion) { + } else if (util_format_is_yuv(pres->format)) { aspect = VK_IMAGE_ASPECT_PLANE_0_BIT; } else { aspect = res->aspect;