<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, Sep 30, 2018 at 1:04 PM Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl">bas@basnieuwenhuizen.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
src/amd/vulkan/radv_device.c | 27 +++++++++++++++++++++++++++<br>
src/amd/vulkan/radv_extensions.py | 1 +<br>
2 files changed, 28 insertions(+)<br>
<br>
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c<br>
index f7752eac83b..fe7e7f7f6ac 100644<br>
--- a/src/amd/vulkan/radv_device.c<br>
+++ b/src/amd/vulkan/radv_device.c<br>
@@ -1196,6 +1196,33 @@ void radv_GetPhysicalDeviceProperties2(<br>
properties->conservativeRasterizationPostDepthCoverage = VK_FALSE;<br>
break;<br>
}<br>
+ case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR: {<br>
+ VkPhysicalDeviceDriverPropertiesKHR *driver_props =<br>
+ (VkPhysicalDeviceDriverPropertiesKHR *) ext;<br>
+<br>
+ driver_props->driverID = VK_DRIVER_ID_MESA_RADV_KHR;<br>
+ memset(driver_props->driverName, 0, VK_MAX_DRIVER_NAME_SIZE_KHR);<br>
+ strcpy(driver_props->driverName, "radv");<br>
+<br>
+ memset(driver_props->driverInfo, 0, VK_MAX_DRIVER_INFO_SIZE_KHR);<br>
+ snprintf(driver_props->driverInfo, VK_MAX_DRIVER_INFO_SIZE_KHR,<br>
+ "Mesa " PACKAGE_VERSION<br>
+#ifdef MESA_GIT_SHA1<br>
+ " ("MESA_GIT_SHA1")"<br>
+#endif<br>
+ " (LLVM %i.%i.%i)",<br></blockquote><div><br></div><div>I think %d is more customary, but I don't care. Assuming you actually pass 1.1.0.2,<br></div><div><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+ (HAVE_LLVM >> 8) & 0xff, HAVE_LLVM & 0xff,<br>
+ MESA_LLVM_VERSION_PATCH);<br>
+<br>
+ driver_props->conformanceVersion = (VkConformanceVersionKHR) {<br>
+ .major = 1,<br>
+ .minor = 1,<br>
+ .subminor = 0,<br>
+ .patch = 2,<br>
+ };<br>
+ break;<br>
+ }<br>
+<br>
default:<br>
break;<br>
}<br>
diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py<br>
index 584926df390..8df5da76ed5 100644<br>
--- a/src/amd/vulkan/radv_extensions.py<br>
+++ b/src/amd/vulkan/radv_extensions.py<br>
@@ -59,6 +59,7 @@ EXTENSIONS = [<br>
Extension('VK_KHR_device_group', 1, True),<br>
Extension('VK_KHR_device_group_creation', 1, True),<br>
Extension('VK_KHR_draw_indirect_count', 1, True),<br>
+ Extension('VK_KHR_driver_properties', 1, True),<br>
Extension('VK_KHR_external_fence', 1, 'device->rad_info.has_syncobj_wait_for_submit'),<br>
Extension('VK_KHR_external_fence_capabilities', 1, True),<br>
Extension('VK_KHR_external_fence_fd', 1, 'device->rad_info.has_syncobj_wait_for_submit'),<br>
-- <br>
2.19.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>