Fix #29274: problem compiling cycles opencl kernel from directory with spaces.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 22 Nov 2011 16:38:58 +0000 (16:38 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 22 Nov 2011 16:38:58 +0000 (16:38 +0000)
commiteb2baf9abc7b182acd9b4c0ba2e002441705f77c
tree6e8c966dae4477441a91e656350785b089326a1d
parent36fa74b50e2d24ef9f99fbff4cc2d393da37361e
Fix #29274: problem compiling cycles opencl kernel from directory with spaces.

Some drivers don't support passing include paths with spaces in them, nor does
the opencl spec specify anything about how to quote/escape such paths, so for
now we just resolved #includes ourselves. Alternative would have been to use c
preprocessor, but this also resolves all #ifdefs, which we do not want.
intern/cycles/device/device_opencl.cpp
intern/cycles/kernel/kernel.cl
intern/cycles/render/filter.cpp
intern/cycles/util/util_path.cpp
intern/cycles/util/util_path.h