diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-06 00:13:08 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-06 00:19:49 +0300 |
commit | ce3e0afe5971fbd75e314714f7bcfa79fedcbe7b (patch) | |
tree | 81c5e1cb7ad943c09fbda42e21d6664d6e4b5027 /intern/cycles/device/device.h | |
parent | bd9ed0228b8455167a404c11121f0d4d46e4c689 (diff) |
Fix T54001: AMD OpenCL fails with certain resolutions, after recent changes.
We should actually be using CL_DEVICE_MEM_BASE_ADDR_ALIGN for sub buffers,
previous change in this code was incorrect. Renamed the function now to
make the specific purpose of this alignment clear, it's not required for
data types in general.
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r-- | intern/cycles/device/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h index 99e80d10424..555fd5ec2d2 100644 --- a/intern/cycles/device/device.h +++ b/intern/cycles/device/device.h @@ -288,7 +288,7 @@ public: Stats &stats; /* memory alignment */ - virtual int mem_address_alignment() { return MIN_ALIGNMENT_CPU_DATA_TYPES; } + virtual int mem_sub_ptr_alignment() { return MIN_ALIGNMENT_CPU_DATA_TYPES; } /* constant memory */ virtual void const_copy_to(const char *name, void *host, size_t size) = 0; |