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

Commit 4a832c72 authored by Chris Forbes's avatar Chris Forbes
Browse files

vulkan: Allow HAL to expose KHR_swapchain_front_buffered

All the API surface for this is in libvulkan, but we need the driver to
have opted in to the more relaxed rules wrt which image layouts may
appear where.

Test: build
Change-Id: I9f1b3cf3df84d928a8b216180a5798bb1bfb046d
parent e099ff59
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -474,6 +474,9 @@ void CreateInfoWrapper::FilterExtension(const char* name) {
            case ProcHook::EXTENSION_UNKNOWN:
                // HAL's extensions
                break;
            case ProcHook::KHR_swapchain_front_buffered:
                // Exposed by HAL, but API surface is all in the loader
                break;
            default:
                ALOGW("Ignored invalid device extension %s", name);
                return;
@@ -491,6 +494,10 @@ void CreateInfoWrapper::FilterExtension(const char* name) {
            if (ext_bit == ProcHook::ANDROID_native_buffer)
                hook_extensions_.set(ProcHook::KHR_swapchain);

            // Exposed by HAL, but API surface is all in the loader
            if (ext_bit == ProcHook::KHR_swapchain_front_buffered)
                hook_extensions_.set(ext_bit);

            hal_extensions_.set(ext_bit);
        }