clover: Don't erase build info of devices not being built
authorTom Stellard <thomas.stellard@amd.com>
Mon, 10 Dec 2012 16:04:04 +0000 (16:04 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 13 Dec 2012 19:22:35 +0000 (19:22 +0000)
commit7f71efcf7a8eace124e71ca72c86d4c2bdc8042d
tree7957c37653077d6173e74fb644d6cf0a31ddb87b
parentc7f9fb37eaa4a6849bb427b6096e52eb0daa9925
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 <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/program.cpp