Snap for 13580881 from 6af751e128 to 25Q4-release
Change-Id: Ib2a0787def05c4e89fd3e3479a2cf3caf74c71d9
This commit is contained in:
commit
e09c88148e
1 changed files with 2 additions and 0 deletions
|
|
@ -161,6 +161,8 @@ static void drv_destroy_and_close(struct driver *drv)
|
|||
static bool is_running_with_software_rendering()
|
||||
{
|
||||
const char *vulkan_driver = drv_get_os_option("ro.hardware.vulkan");
|
||||
if (!vulkan_driver)
|
||||
vulkan_driver = drv_get_os_option("ro.board.platform");
|
||||
return (vulkan_driver != nullptr && strstr(vulkan_driver, "pastel") != nullptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue