<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Oct 1, 2018 at 12:41 PM Eric Engestrom <<a href="mailto:eric.engestrom@intel.com">eric.engestrom@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sunday, 2018-09-30 20:03:49 +0200, Bas Nieuwenhuizen wrote:<br>
> ---<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>
<br>
Since bc8abc1adf0355b54e55 "bin: always define MESA_GIT_SHA1 to make it<br>
directly usable in code", the #ifdef dance is no longer necessary :)<br></blockquote><div><br></div><div>Neat! I'll update the anv patch accordingly.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> + " (LLVM %i.%i.%i)",<br>
> + (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>
_______________________________________________<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>