mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
ad7eee23e9
commit
f332128ccf
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue