[Mesa-dev] [PATCH v4 17/20] clover: Handle CL_PROGRAM_IL in clGetProgramInfo
Pierre Moreau
pierre.morrow at free.fr
Thu Mar 8 00:21:26 UTC 2018
Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---
Notes:
Changes in v4: Use the core define instead of the extension one (Karol Herbst)
v3: Switch from using a pointer attribute to a vector (Francisco Jerez)
src/gallium/state_trackers/clover/api/program.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp
index cc37a008ad..2501d0bc07 100644
--- a/src/gallium/state_trackers/clover/api/program.cpp
+++ b/src/gallium/state_trackers/clover/api/program.cpp
@@ -456,6 +456,13 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param,
buf.as_string() = prog.source();
break;
+ case CL_PROGRAM_IL:
+ if (prog.has_il)
+ buf.as_vector<char>() = prog.il();
+ else if (r_size)
+ *r_size = 0u;
+ break;
+
case CL_PROGRAM_BINARY_SIZES:
buf.as_vector<size_t>() = map([&](const device &dev) {
return prog.build(dev).binary.size();
--
2.16.2
More information about the mesa-dev
mailing list