Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-02-06 00:13:08 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-02-06 00:19:49 +0300
commitce3e0afe5971fbd75e314714f7bcfa79fedcbe7b (patch)
tree81c5e1cb7ad943c09fbda42e21d6664d6e4b5027 /intern/cycles/device/device.h
parentbd9ed0228b8455167a404c11121f0d4d46e4c689 (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.h2
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;