anv: Support querying for protected memory
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -808,6 +808,12 @@ void anv_GetPhysicalDeviceFeatures2(
|
|||||||
|
|
||||||
vk_foreach_struct(ext, pFeatures->pNext) {
|
vk_foreach_struct(ext, pFeatures->pNext) {
|
||||||
switch (ext->sType) {
|
switch (ext->sType) {
|
||||||
|
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: {
|
||||||
|
VkPhysicalDeviceProtectedMemoryFeatures *features = (void *)ext;
|
||||||
|
features->protectedMemory = VK_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES: {
|
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES: {
|
||||||
VkPhysicalDeviceMultiviewFeatures *features =
|
VkPhysicalDeviceMultiviewFeatures *features =
|
||||||
(VkPhysicalDeviceMultiviewFeatures *)ext;
|
(VkPhysicalDeviceMultiviewFeatures *)ext;
|
||||||
|
Reference in New Issue
Block a user