Snap for 13580881 from 6af751e128 to 25Q4-release

Change-Id: Ib2a0787def05c4e89fd3e3479a2cf3caf74c71d9
This commit is contained in:
Android Build Coastguard Worker 2025-05-31 14:11:09 -07:00
commit e09c88148e

View file

@ -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);
}