Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8c3c872 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Require protected memory support when creating protected queue" into main

parents 30161cba 1aab9922
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -433,6 +433,10 @@ VulkanInterface initVulkanInterface(bool protectedContent = false) {
    // Looks like this would slow things down and we can't depend on it on all platforms
    interface.physicalDeviceFeatures2->features.robustBufferAccess = VK_FALSE;

    if (protectedContent && !interface.protectedMemoryFeatures->protectedMemory) {
        BAIL("Protected memory not supported");
    }

    float queuePriorities[1] = {0.0f};
    void* queueNextPtr = nullptr;