anv/format: handle video extensions structs by ignoring them

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20782>
This commit is contained in:
Dave Airlie 2023-01-23 16:53:48 +10:00 committed by Marge Bot
parent 9361481780
commit 3b110efccb

View file

@ -974,6 +974,9 @@ void anv_GetPhysicalDeviceFormatProperties2(
props->bufferFeatures = buffer2;
break;
}
case VK_STRUCTURE_TYPE_VIDEO_PROFILE_LIST_INFO_KHR:
/* don't have any thing to use this for yet */
break;
default:
anv_debug_ignored_stype(ext->sType);
break;
@ -1394,6 +1397,9 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties2(
case VK_STRUCTURE_TYPE_WSI_IMAGE_CREATE_INFO_MESA:
from_wsi = true;
break;
case VK_STRUCTURE_TYPE_VIDEO_PROFILE_LIST_INFO_KHR:
/* Ignore but don't warn */
break;
default:
anv_debug_ignored_stype(s->sType);
break;