diff options
| author | 2020-04-28 00:20:56 +0000 | |
|---|---|---|
| committer | 2020-04-28 00:20:56 +0000 | |
| commit | 3e3e804adb31f0bb2cb90619cffda7eb27316f57 (patch) | |
| tree | c40977991e43eaf10c10ac01fed3962d36072053 /vulkan/libvulkan/driver.cpp | |
| parent | 39f2a2ee9ebb9c84840e7a118c1543f9891558be (diff) | |
| parent | a02be27f6d7804ea32c47cb0e70bdb7fa9c3889d (diff) | |
Merge "Change to using sysprop for libvulkan" into rvc-dev am: a02be27f6d
Change-Id: Id2c16171074d73c962352ddb3c69298f8e7bb638
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
| -rw-r--r-- | vulkan/libvulkan/driver.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index a7ec4aed1d..a5f0c9f803 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -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}); |