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

Commit a0e14516 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

Change-Id: I858d5fc1edbb4bbe2bc5ae4e57262048275c57b9
parents 32c19cc8 42649171
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -252,18 +252,6 @@ bool Hal::Open() {
    result = LoadUpdatedDriver(&module);
    result = LoadUpdatedDriver(&module);
    if (result == -ENOENT) {
    if (result == -ENOENT) {
        result = LoadBuiltinDriver(&module);
        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) {
    if (result != 0) {
        android::GraphicsEnv::getInstance().setDriverLoaded(
        android::GraphicsEnv::getInstance().setDriverLoaded(