mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 21:10:12 +01:00
venus: fix VkImageFormatListCreateInfo for AHB
In vn_physical_device_fix_image_format_info, local_info->list.viewFormatCount is unintialized when has_format_list is false. We need to check has_format_list first. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18792>
This commit is contained in:
parent
0d66ed49b4
commit
ee2e01c0ef
1 changed files with 1 additions and 1 deletions
|
|
@ -1944,7 +1944,7 @@ vn_physical_device_fix_image_format_info(
|
|||
dst = dst->pNext;
|
||||
|
||||
if ((info->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) &&
|
||||
!local_info->list.viewFormatCount) {
|
||||
(!has_format_list || !local_info->list.viewFormatCount)) {
|
||||
/* 12.3. Images
|
||||
*
|
||||
* If tiling is VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT and flags
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue