radv: Support VkPhysicalDeviceProtectedMemoryFeatures.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 21 Jan 2018 14:59:45 +0000 (15:59 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 20:18:35 +0000 (21:18 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index a791d3a7e4c461e612dd4218d2d7d18371302bd5..c16944e5f8ee857e11bb1c74c430ea250dce47c8 100644 (file)
@@ -672,6 +672,12 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->shaderDrawParameters = true;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: {
+                       VkPhysicalDeviceProtectedMemoryFeatures *features =
+                           (VkPhysicalDeviceProtectedMemoryFeatures*)ext;
+                       features->protectedMemory = false;
+                       break;
+               }
                default:
                        break;
                }