diff options
author | Francisco Jerez <[email protected]> | 2014-06-14 21:03:02 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-06-19 20:17:19 +0200 |
commit | 4a39e5073a7d0cd8243c6f963567a9945265490c (patch) | |
tree | 22383d8abbb68291160e8607d0829fb2ef512b83 /src/gallium/state_trackers/clover/api | |
parent | ab023c27a374bb69bd7300b5b6f0789844fc8ba9 (diff) |
clover: Calculate the serialized size of a module efficiently.
Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r-- | src/gallium/state_trackers/clover/api/program.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index fedc91d531a..a14baa30e06 100644 --- a/src/gallium/state_trackers/clover/api/program.cpp +++ b/src/gallium/state_trackers/clover/api/program.cpp @@ -190,10 +190,7 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param, case CL_PROGRAM_BINARY_SIZES: buf.as_vector<size_t>() = map([&](const device &dev) { - compat::ostream::buffer_t bin; - compat::ostream s(bin); - prog.binary(dev).serialize(s); - return bin.size(); + return prog.binary(dev).size(); }, prog.devices()); break; |