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

Commit ebe329ba authored by Yiwei Zhang's avatar Yiwei Zhang Committed by Automerger Merge Worker
Browse files

Vulkan: remove the fallback path to load Vulkan driver am: 42649171 am:...

Vulkan: remove the fallback path to load Vulkan driver am: 42649171 am: a0e14516 am: 2cb450b4 am: 3aef6969

Change-Id: Ie275a9d54d75dcfddc4ad62403e4fe0fbd9c5c0a
parents cf5f4059 3aef6969
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -252,18 +252,6 @@ bool Hal::Open() {
    result = LoadUpdatedDriver(&module);
    if (result == -ENOENT) {
        result = LoadBuiltinDriver(&module);
        if (result != 0) {
            // -ENOENT means the sphal namespace doesn't exist, not that there
            // is a problem with the driver.
            ALOGW_IF(
                result != -ENOENT,
                "Failed to load Vulkan driver into sphal namespace. This "
                "usually means the driver has forbidden library dependencies."
                "Please fix, this will soon stop working.");
            result =
                hw_get_module(HWVULKAN_HARDWARE_MODULE_ID,
                              reinterpret_cast<const hw_module_t**>(&module));
        }
    }
    if (result != 0) {
        android::GraphicsEnv::getInstance().setDriverLoaded(