diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 5f0d7e01e48..f0995a894e2 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3653,7 +3653,11 @@ VkResult anv_AllocateMemory( } default: - anv_debug_ignored_stype(ext->sType); + if (ext->sType != VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA) + /* this isn't a real enum value, + * so use conditional to avoid compiler warn + */ + anv_debug_ignored_stype(ext->sType); break; } } diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 1bf60182967..8e264085b1c 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -1352,7 +1352,8 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties2( external_info = (const void *) s; break; case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT: - /* anv_get_image_format_properties will handle this */ + case VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR: + /* anv_get_image_format_properties will handle these */ break; case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXT: /* Ignore but don't warn */