mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
clover: add CL_PLATFORM_NUMERIC_VERSION support
This is part of CL 3.0 Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7520>
This commit is contained in:
parent
019130ed71
commit
5444918098
3 changed files with 12 additions and 0 deletions
|
|
@ -81,6 +81,11 @@ clover::GetPlatformInfo(cl_platform_id d_platform, cl_platform_info param,
|
|||
buf.as_string() = "MESA";
|
||||
break;
|
||||
|
||||
case CL_PLATFORM_NUMERIC_VERSION: {
|
||||
buf.as_scalar<cl_version>() = platform.platform_version();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
throw error(CL_INVALID_VALUE);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,3 +57,8 @@ platform::platform_version_as_string() const {
|
|||
std::to_string(CL_VERSION_MINOR(version));
|
||||
return version_string;
|
||||
}
|
||||
|
||||
cl_version
|
||||
platform::platform_version() const {
|
||||
return version;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ namespace clover {
|
|||
std::string supported_extensions_as_string() const;
|
||||
|
||||
std::string platform_version_as_string() const;
|
||||
cl_version platform_version() const;
|
||||
|
||||
protected:
|
||||
cl_version version;
|
||||
std::vector<intrusive_ref<device>> devs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue