Mesa (main): turnip: Set the VK_DRIVER_ID to our new enum.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 24 18:19:38 UTC 2021


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

Author: Emma Anholt <emma at anholt.net>
Date:   Thu Sep 23 15:13:46 2021 -0700

turnip: Set the VK_DRIVER_ID to our new enum.

This hasn't been exposed yet, but would be with vulkan 1.2 or
VK_KHR_driver_properties

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13007>

---

 src/freedreno/vulkan/tu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index 7a0561823dd..c97c007975f 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -759,7 +759,7 @@ tu_get_physical_device_properties_1_2(struct tu_physical_device *pdevice,
 {
    assert(p->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES);
 
-   p->driverID = 0; /* XXX: VK 1.2: Need to get a value assigned */
+   p->driverID = VK_DRIVER_ID_MESA_TURNIP;
    memset(p->driverName, 0, sizeof(p->driverName));
    snprintf(p->driverName, VK_MAX_DRIVER_NAME_SIZE_KHR,
             "turnip Mesa driver");



More information about the mesa-commit mailing list