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

Commit 3af04372 authored by Chris Forbes's avatar Chris Forbes Committed by Android (Google) Code Review
Browse files

Merge "vulkan: Allow HAL to expose KHR_swapchain_front_buffered"

parents 1214c989 4a832c72
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -474,6 +474,9 @@ void CreateInfoWrapper::FilterExtension(const char* name) {
            case ProcHook::EXTENSION_UNKNOWN:
            case ProcHook::EXTENSION_UNKNOWN:
                // HAL's extensions
                // HAL's extensions
                break;
                break;
            case ProcHook::KHR_swapchain_front_buffered:
                // Exposed by HAL, but API surface is all in the loader
                break;
            default:
            default:
                ALOGW("Ignored invalid device extension %s", name);
                ALOGW("Ignored invalid device extension %s", name);
                return;
                return;
@@ -491,6 +494,10 @@ void CreateInfoWrapper::FilterExtension(const char* name) {
            if (ext_bit == ProcHook::ANDROID_native_buffer)
            if (ext_bit == ProcHook::ANDROID_native_buffer)
                hook_extensions_.set(ProcHook::KHR_swapchain);
                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);
            hal_extensions_.set(ext_bit);
        }
        }