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

Commit 5c2a1eaf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Change to using sysprop for libvulkan" into rvc-dev am: a02be27f am: 3e3e804a

Change-Id: Iff141a4f17f594abdad9e3602c96e1c7c62b8ed5
parents ae6ee19c 3e3e804a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ cc_library_shared {
        "hwvulkan_headers",
        "libnativeloader-headers",
        "vulkan_headers",
        "libsurfaceflinger_headers",
    ],
    export_header_lib_headers: ["vulkan_headers"],
    shared_libs: [
@@ -100,6 +101,7 @@ cc_library_shared {
        "libnativeloader_lazy",
        "libnativewindow",
        "android.hardware.graphics.common@1.0",
        "libSurfaceFlingerProp",
    ],
    static_libs: ["libgrallocusage"],
}
+3 −4
Original line number Diff line number Diff line
@@ -23,9 +23,10 @@
#include <stdlib.h>
#include <string.h>

#include <SurfaceFlingerProperties.h>
#include <android-base/properties.h>
#include <android/dlext.h>
#include <android/hardware/configstore/1.0/ISurfaceFlingerConfigs.h>
#include <android-base/properties.h>
#include <configstore/Utils.h>
#include <cutils/properties.h>
#include <graphicsenv/GraphicsEnv.h>
@@ -959,9 +960,7 @@ VkResult EnumerateDeviceExtensionProperties(
        VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME,
        VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION});

    bool hdrBoardConfig =
        getBool<ISurfaceFlingerConfigs, &ISurfaceFlingerConfigs::hasHDRDisplay>(
            false);
    bool hdrBoardConfig = android::sysprop::has_HDR_display(false);
    if (hdrBoardConfig) {
        loader_extensions.push_back({VK_EXT_HDR_METADATA_EXTENSION_NAME,
                                     VK_EXT_HDR_METADATA_SPEC_VERSION});