vulkan: add new image types undef beta define to switch statements.
This fixes some warnings when building with beta extensions enabled. Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13685>
This commit is contained in:
parent
3e9e186ca1
commit
40157bc2b0
|
@ -489,6 +489,14 @@ vk_image_layout_is_read_only(VkImageLayout layout,
|
|||
return aspect == VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
|
||||
case VK_IMAGE_LAYOUT_MAX_ENUM:
|
||||
#ifdef VK_ENABLE_BETA_EXTENSIONS
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_SRC_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_DST_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR:
|
||||
#endif
|
||||
unreachable("Invalid image layout.");
|
||||
}
|
||||
|
||||
|
@ -610,6 +618,14 @@ vk_image_layout_to_usage_flags(VkImageLayout layout,
|
|||
VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
|
||||
|
||||
case VK_IMAGE_LAYOUT_MAX_ENUM:
|
||||
#ifdef VK_ENABLE_BETA_EXTENSIONS
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_SRC_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_DST_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR:
|
||||
#endif
|
||||
unreachable("Invalid image layout.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue