Mesa (master): radv: remove the LLVM version string when ACO is used

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 8 07:11:27 UTC 2020


Module: Mesa
Branch: master
Commit: b1ef1c1211373f9336aaf87de865ef7f0c29fc44
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1ef1c1211373f9336aaf87de865ef7f0c29fc44

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed May  6 09:32:27 2020 +0200

radv: remove the LLVM version string when ACO is used

Now that ACO supports all shader stages (the only exception is NGG
GS on Navi10 but it fallbacks to legacy GS) it makes sense to remove
the LLVM version string reported as part of the device name.

The LLVM version string was added in the past for some Feral games
to workaround LLVM issues by detecting the version. With ACO, this
is unecessary because the Mesa version is enough to eventually enable
specific shader workarounds.

When the LLVM version string is missing, it is assumed that an old
LLVM is used and workarounds are automatically applied. The only
Vulkan games that might be affected is Shadow of The Tomb Raider
but the impact should be fairly small.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Acked-by: Daniel Schürmann <daniel at schuermann.dev>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4911>

---

 src/amd/vulkan/radv_device.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index d4b78ef06df..d5d1553e5f9 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -333,8 +333,9 @@ radv_physical_device_try_create(struct radv_instance *instance,
 	device->use_aco = instance->perftest_flags & RADV_PERFTEST_ACO;
 
 	snprintf(device->name, sizeof(device->name),
-		 "AMD RADV%s %s (LLVM " MESA_LLVM_VERSION_STRING ")", device->use_aco ? "/ACO" : "",
-		 device->rad_info.name);
+		 "AMD RADV %s (%s)",
+		 device->rad_info.name,
+		 device->use_aco ? "ACO" : "LLVM " MESA_LLVM_VERSION_STRING);
 
 	if (radv_device_get_cache_uuid(device->rad_info.family, device->cache_uuid)) {
 		result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
@@ -1481,8 +1482,8 @@ radv_get_physical_device_properties_1_2(struct radv_physical_device *pdevice,
 	p->driverID = VK_DRIVER_ID_MESA_RADV;
 	snprintf(p->driverName, VK_MAX_DRIVER_NAME_SIZE, "radv");
 	snprintf(p->driverInfo, VK_MAX_DRIVER_INFO_SIZE,
-		 "Mesa " PACKAGE_VERSION MESA_GIT_SHA1
-		 " (LLVM " MESA_LLVM_VERSION_STRING ")");
+		 "Mesa " PACKAGE_VERSION MESA_GIT_SHA1 " (%s)",
+		 pdevice->use_aco ? "ACO" : "LLVM " MESA_LLVM_VERSION_STRING);
 	p->conformanceVersion = (VkConformanceVersion) {
 		.major = 1,
 		.minor = 2,



More information about the mesa-commit mailing list