Mesa (main): dzn: fill in driver name and info

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 18 16:21:22 UTC 2022


Module: Mesa
Branch: main
Commit: 4d7403d4dc3186181800e3da292b50ba001e9745
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d7403d4dc3186181800e3da292b50ba001e9745

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Jun 13 13:47:51 2022 +0200

dzn: fill in driver name and info

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16998>

---

 src/microsoft/vulkan/dzn_device.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index db20d7e9672..576127d90da 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -42,6 +42,8 @@
 
 #include "dxil_validator.h"
 
+#include "git_sha1.h"
+
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -1575,10 +1577,13 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
 
    STATIC_ASSERT(sizeof(pdevice->desc.adapter_luid) == sizeof(core_1_1.deviceLUID));
 
-   const VkPhysicalDeviceVulkan12Properties core_1_2 = {
+   VkPhysicalDeviceVulkan12Properties core_1_2 = {
       .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES,
    };
 
+   snprintf(core_1_2.driverName, VK_MAX_DRIVER_NAME_SIZE, "Dozen");
+   snprintf(core_1_2.driverInfo, VK_MAX_DRIVER_INFO_SIZE, "Mesa " PACKAGE_VERSION MESA_GIT_SHA1);
+
    const VkPhysicalDeviceVulkan13Properties core_1_3 = {
       .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES,
    };



More information about the mesa-commit mailing list