Set driver ID for gfxstream

This is temporarily using the main software backend's driver id to
ensure a valid status on CTS. It'll be updated once the vulkan headers
are updated with mr 8272 on khronos side.

Test: dEQP-VK.api.driver_properties#driver_id_match

Reviewed-by: David Gilhooley <djgilhooley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41656>
This commit is contained in:
Serdar Kocdemir 2026-05-11 11:28:43 +00:00 committed by Marge Bot
parent 00261e5d00
commit e71d6dc06d

View file

@ -2233,6 +2233,10 @@ void ResourceTracker::on_vkGetPhysicalDeviceProperties2(void* context,
VkPhysicalDeviceDriverProperties* driverProps =
vk_find_struct(pProperties, PHYSICAL_DEVICE_DRIVER_PROPERTIES);
if (driverProps) {
#if DETECT_OS_ANDROID
//TODO(b/502904616): change with VK_DRIVER_ID_MESA_GFXSTREAM when the headers are updated
driverProps->driverID = VK_DRIVER_ID_MESA_LLVMPIPE;
#endif
snprintf(driverProps->driverName, sizeof(driverProps->driverName), "gfxstream");
snprintf(driverProps->driverInfo, sizeof(driverProps->driverInfo),
"Mesa " PACKAGE_VERSION MESA_GIT_SHA1);