Mesa (master): radv: remove duplicate brackets in version string

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 26 17:33:47 UTC 2018


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

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Thu Oct 25 17:36:30 2018 +0100

radv: remove duplicate brackets in version string

MESA_GIT_SHA1 resolves to either an empty "" string if not build from git,
or " (git-DEADBEEF)" if it is. No need to wrap it in additional "()".

Fixes: 9d40ec2cf6ec6d3d9d78 "radv: Add support for VK_KHR_driver_properties."
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

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

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index b2798c402f..1c6be300b4 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -1200,7 +1200,7 @@ void radv_GetPhysicalDeviceProperties2(
 
 			memset(driver_props->driverInfo, 0, VK_MAX_DRIVER_INFO_SIZE_KHR);
 			snprintf(driver_props->driverInfo, VK_MAX_DRIVER_INFO_SIZE_KHR,
-				"Mesa " PACKAGE_VERSION	" (" MESA_GIT_SHA1 ")"
+				"Mesa " PACKAGE_VERSION MESA_GIT_SHA1
 				" (LLVM %d.%d.%d)",
 				 (HAVE_LLVM >> 8) & 0xff, HAVE_LLVM & 0xff,
 				 MESA_LLVM_VERSION_PATCH);




More information about the mesa-commit mailing list