diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-10-25 00:23:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-10-25 00:53:09 +0300 |
commit | 34fe3f9c069fc93fde5ec5bafcdfb9294348b58f (patch) | |
tree | c227512b4ad25813f2590c8d77f35f6ec05a5317 /intern/cycles/device/device_memory.cpp | |
parent | fe253389e027c2da3a0d4ad7304f360be64e27e5 (diff) |
Code refactor: remove MEM_WRITE_ONLY, always use MEM_READ_WRITE.
It's unlikely the driver can do useful optimizations with this, and if
we sum multiple samples we are reading from the memory anyway.
Diffstat (limited to 'intern/cycles/device/device_memory.cpp')
-rw-r--r-- | intern/cycles/device/device_memory.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intern/cycles/device/device_memory.cpp b/intern/cycles/device/device_memory.cpp index 9f4f60e7531..9c67345f39e 100644 --- a/intern/cycles/device/device_memory.cpp +++ b/intern/cycles/device/device_memory.cpp @@ -85,7 +85,6 @@ void device_memory::device_free() void device_memory::device_copy_to() { - assert(type != MEM_PIXELS && type != MEM_WRITE_ONLY); if(data_size) { device->mem_copy_to(*this); } @@ -99,7 +98,6 @@ void device_memory::device_copy_from(int y, int w, int h, int elem) void device_memory::device_zero() { - assert(type != MEM_PIXELS && type != MEM_WRITE_ONLY); if(data_size) { device->mem_zero(*this); } |