mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
hasvk: avoid assert due to unsupported format
Fixes: 0a4c92b646 ("hasvk: Use the common vk_ycbcr_conversion object")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9011
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22978>
This commit is contained in:
parent
e930ad6017
commit
d41b83e1ca
1 changed files with 1 additions and 0 deletions
|
|
@ -537,6 +537,7 @@ VkResult genX(CreateSampler)(
|
|||
anv_get_format(sampler->conversion->state.format)->planes[0].isl_format :
|
||||
ISL_FORMAT_UNSUPPORTED;
|
||||
const bool isl_format_is_planar_yuv =
|
||||
plane0_isl_format != ISL_FORMAT_UNSUPPORTED &&
|
||||
isl_format_is_yuv(plane0_isl_format) &&
|
||||
isl_format_is_planar(plane0_isl_format);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue