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:
committed by
Marge Bot
parent
ad7eee23e9
commit
f332128ccf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user