diff options
-rw-r--r-- | src/gallium/state_trackers/clover/api/device.cpp | 5 | ||||
-rw-r--r-- | src/gallium/state_trackers/clover/api/platform.cpp | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp index ed323e09afc..11f21e94eae 100644 --- a/src/gallium/state_trackers/clover/api/device.cpp +++ b/src/gallium/state_trackers/clover/api/device.cpp @@ -302,7 +302,10 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param, case CL_DEVICE_VERSION: buf.as_string() = "OpenCL 1.1 Mesa " PACKAGE_VERSION - " (" MESA_GIT_SHA1 ")"; +#ifdef MESA_GIT_SHA1 + " (" MESA_GIT_SHA1 ")" +#endif + ; break; case CL_DEVICE_EXTENSIONS: diff --git a/src/gallium/state_trackers/clover/api/platform.cpp b/src/gallium/state_trackers/clover/api/platform.cpp index cdb8a9903b4..b1b1fdfb6f2 100644 --- a/src/gallium/state_trackers/clover/api/platform.cpp +++ b/src/gallium/state_trackers/clover/api/platform.cpp @@ -59,7 +59,10 @@ clover::GetPlatformInfo(cl_platform_id d_platform, cl_platform_info param, case CL_PLATFORM_VERSION: buf.as_string() = "OpenCL 1.1 Mesa " PACKAGE_VERSION - " (" MESA_GIT_SHA1 ")"; +#ifdef MESA_GIT_SHA1 + " (" MESA_GIT_SHA1 ")" +#endif + ; break; case CL_PLATFORM_NAME: |