mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
hasvk: unbreak assert format != ISL_FORMAT_UNSUPPORTED
Format is set to ISL_FORMAT_UNSUPPORTED at anv_get_format_plane at src/intel/vulkan_hasvk/anv_formats.c, because Ivy Bridge does not support enough 24 and 48-bits formats. Problem solved by checking format after the call. Signed-off-by: GKraats <vd.kraats@hccnet.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40237>
This commit is contained in:
parent
96d17d18be
commit
3c01e6139a
1 changed files with 2 additions and 0 deletions
|
|
@ -602,6 +602,8 @@ anv_get_image_format_features2(const struct intel_device_info *devinfo,
|
|||
base_plane_format = anv_get_format_plane(devinfo, vk_format, 0,
|
||||
VK_IMAGE_TILING_LINEAR);
|
||||
}
|
||||
if (base_plane_format.isl_format == ISL_FORMAT_UNSUPPORTED)
|
||||
return 0;
|
||||
|
||||
enum isl_format base_isl_format = base_plane_format.isl_format;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue