Change MESA into Mesa in CL_PLATFORM_VERSION and CL_DEVICE_VERSION. For
both, always append git version suffix from git_sha1.h.
v5: move semicolon to same line as MESA_GIT_SHA1.
v4: drop #ifdef guards.
v3: add missing include.
v2: change CL_DEVICE_VERSION as well.
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
#include "api/util.hpp"
#include "core/platform.hpp"
#include "core/device.hpp"
+#include "git_sha1.h"
using namespace clover;
break;
case CL_DEVICE_VERSION:
- buf.as_string() = "OpenCL 1.1 MESA " PACKAGE_VERSION;
+ buf.as_string() = "OpenCL 1.1 Mesa " PACKAGE_VERSION
+ " (" MESA_GIT_SHA1 ")";
break;
case CL_DEVICE_EXTENSIONS:
#include "api/util.hpp"
#include "core/platform.hpp"
+#include "git_sha1.h"
using namespace clover;
break;
case CL_PLATFORM_VERSION:
- buf.as_string() = "OpenCL 1.1 MESA " PACKAGE_VERSION;
+ buf.as_string() = "OpenCL 1.1 Mesa " PACKAGE_VERSION
+ " (" MESA_GIT_SHA1 ")";
break;
case CL_PLATFORM_NAME: