diff options
author | 2024-05-24 08:27:45 -0700 | |
---|---|---|
committer | 2024-05-24 08:27:45 -0700 | |
commit | 5968781840bb5bead4758c9adb1e41bbea1c24c7 (patch) | |
tree | d0c6e21063ef3a2265bd3071e363ddfe9ccf618b /vulkan/libvulkan/driver.cpp | |
parent | a99e1cd67b5d2237200bf23b44a03e0eb31e9326 (diff) | |
parent | 8bf4487ae52ce8d1797ea58dd0b1109255518ceb (diff) |
Merge Android 24Q2 Release (ab/11526283) to aosp-main-future
Bug: 337098550
Merged-In: I8d975b81afd2cde1d543e8bc7e730a6e42393bec
Change-Id: I714982d2b0df34afc9f9729deb2636de5d0c7b64
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
-rw-r--r-- | vulkan/libvulkan/driver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index 0e45d2d8c4..81fd1185b6 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -340,8 +340,9 @@ void Hal::UnloadBuiltinDriver() { ALOGD("Unload builtin Vulkan driver."); // Close the opened device - ALOG_ASSERT(!hal_.dev_->common.close(hal_.dev_->common), - "hw_device_t::close() failed."); + int err = hal_.dev_->common.close( + const_cast<struct hw_device_t*>(&hal_.dev_->common)); + ALOG_ASSERT(!err, "hw_device_t::close() failed."); // Close the opened shared library in the hw_module_t android_unload_sphal_library(hal_.dev_->common.module->dso); |