summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2014-06-21 18:06:07 +0200
committerTom Stellard <[email protected]>2014-07-02 15:15:13 -0400
commitd2504ead2f7eb02b6a33545de2cf1b5957306fd6 (patch)
treebc85eb515dd9bb48f3d81878ce2bd5160e1859a0 /src/gallium/state_trackers/clover/api
parent9e5beac236a3c12b4868f61da719726680975570 (diff)
clover: Have compat::string allocate its own memory.
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r--src/gallium/state_trackers/clover/api/kernel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/kernel.cpp b/src/gallium/state_trackers/clover/api/kernel.cpp
index 96cf302b161..05cc392a914 100644
--- a/src/gallium/state_trackers/clover/api/kernel.cpp
+++ b/src/gallium/state_trackers/clover/api/kernel.cpp
@@ -58,7 +58,9 @@ clCreateKernelsInProgram(cl_program d_prog, cl_uint count,
if (rd_kerns)
copy(map([&](const module::symbol &sym) {
- return desc(new kernel(prog, compat::string(sym.name),
+ return desc(new kernel(prog,
+ std::string(sym.name.begin(),
+ sym.name.end()),
range(sym.args)));
}, syms),
rd_kerns);