zink: swap sampler conversion conditional with yuv check

this is more useful

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31320>
This commit is contained in:
Mike Blumenkrantz 2024-09-04 09:35:13 -04:00 committed by Marge Bot
parent ad7eee23e9
commit f332128ccf

View file

@ -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;