diff options
author | Tom Stellard <[email protected]> | 2012-12-10 16:04:04 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-12-13 19:22:35 +0000 |
commit | 7f71efcf7a8eace124e71ca72c86d4c2bdc8042d (patch) | |
tree | 7957c37653077d6173e74fb644d6cf0a31ddb87b | |
parent | c7f9fb37eaa4a6849bb427b6096e52eb0daa9925 (diff) |
clover: Don't erase build info of devices not being built
Every call to _cl_program::build() was erasing the binaries and logs for
every device associated with the program. This is incorrect because
it is possible to build a program for only a subset of devices and so
any device not being build should not have this information erased.
Reviewed-by: Francisco Jerez <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/clover/core/program.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/core/program.cpp b/src/gallium/state_trackers/clover/core/program.cpp index 6ca8080c925..5fcda23fc65 100644 --- a/src/gallium/state_trackers/clover/core/program.cpp +++ b/src/gallium/state_trackers/clover/core/program.cpp @@ -42,10 +42,10 @@ _cl_program::_cl_program(clover::context &ctx, void _cl_program::build(const std::vector<clover::device *> &devs) { - __binaries.clear(); - __logs.clear(); for (auto dev : devs) { + __binaries.erase(dev); + __logs.erase(dev); try { auto module = (dev->ir_format() == PIPE_SHADER_IR_TGSI ? compile_program_tgsi(__source) : |