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:
authorThomas Dinges <blender@dingto.org>2016-05-06 14:42:50 +0300
committerThomas Dinges <blender@dingto.org>2016-05-06 15:37:35 +0300
commit3807bcb3a845475ac938a331329d3fd92d90c3e4 (patch)
tree98fc2b7357cd7ac02c9e16317f4bc8ec8a4f9100 /intern/cycles/kernel/kernels/cpu
parent36d8a70b00c2c0a1bc28ffad4cc2e283a77d7bab (diff)
Cleanup: Rename texture slots to float4 and byte, to distinguish from future float (single channel) and half_float slots.
Should be no functional changes, tested CPU and CUDA.
Diffstat (limited to 'intern/cycles/kernel/kernels/cpu')
-rw-r--r--intern/cycles/kernel/kernels/cpu/kernel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/intern/cycles/kernel/kernels/cpu/kernel.cpp b/intern/cycles/kernel/kernels/cpu/kernel.cpp
index 45091f6f33d..5fa95f29613 100644
--- a/intern/cycles/kernel/kernels/cpu/kernel.cpp
+++ b/intern/cycles/kernel/kernels/cpu/kernel.cpp
@@ -90,13 +90,13 @@ void kernel_tex_copy(KernelGlobals *kg,
#define KERNEL_IMAGE_TEX(type, ttype, tname)
#include "kernel_textures.h"
- else if(strstr(name, "__tex_image_float")) {
+ else if(strstr(name, "__tex_image_float4")) {
texture_image_float4 *tex = NULL;
- int id = atoi(name + strlen("__tex_image_float_"));
+ int id = atoi(name + strlen("__tex_image_float4_"));
int array_index = id;
- if(array_index >= 0 && array_index < MAX_FLOAT_IMAGES) {
- tex = &kg->texture_float_images[array_index];
+ if(array_index >= 0 && array_index < MAX_FLOAT4_IMAGES) {
+ tex = &kg->texture_float4_images[array_index];
}
if(tex) {
@@ -106,10 +106,10 @@ void kernel_tex_copy(KernelGlobals *kg,
tex->extension = extension;
}
}
- else if(strstr(name, "__tex_image")) {
+ else if(strstr(name, "__tex_image_byte")) {
texture_image_uchar4 *tex = NULL;
- int id = atoi(name + strlen("__tex_image_"));
- int array_index = id - MAX_FLOAT_IMAGES;
+ int id = atoi(name + strlen("__tex_image_byte_"));
+ int array_index = id - MAX_FLOAT4_IMAGES;
if(array_index >= 0 && array_index < MAX_BYTE_IMAGES) {
tex = &kg->texture_byte_images[array_index];