[Mesa-dev] [PATCH v2 18/22] clover/api: Implement CL_DEVICE_IL_VERSION_KHR
Pierre Moreau
pierre.morrow at free.fr
Tue Jan 23 08:52:28 UTC 2018
Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---
src/gallium/state_trackers/clover/api/device.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
index 4e274c5005..6bede21ca4 100644
--- a/src/gallium/state_trackers/clover/api/device.cpp
+++ b/src/gallium/state_trackers/clover/api/device.cpp
@@ -333,6 +333,11 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
buf.as_string() = dev.supported_extensions();
break;
+ case CL_DEVICE_IL_VERSION_KHR:
+ buf.as_string() =
+ std::string(dev.supports_ir(PIPE_SHADER_IR_SPIRV) ? "SPIR-V_1.0" : "");
+ break;
+
case CL_DEVICE_PLATFORM:
buf.as_scalar<cl_platform_id>() = desc(dev.platform);
break;
--
2.16.0
More information about the mesa-dev
mailing list