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-09 18:06:22 +0300
committerThomas Dinges <blender@dingto.org>2016-05-10 03:53:50 +0300
commit76481eaeff77e46555f8a0458d860911a9a57a9c (patch)
treeaa3e872c967d4744ad7504a5e54f1003da441984 /intern/cycles/util
parentdc82c2cd4817c6c84a4dd7e313eb2659a8830d59 (diff)
Cycles: Add support for float4 textures on OpenCL.
Title says it all, this adds OpenCL float4 texture support. There is a bug in the code still, I get a "Out of ressources error" on nvidia hardware here, not sure whats wrong yet. Will investigate further, but maybe someone else has an idea. :) Reviewers: #cycles, brecht Subscribers: brecht, candreacchio Differential Revision: https://developer.blender.org/D1983
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_texture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_texture.h b/intern/cycles/util/util_texture.h
index 837858d0687..346ccd8ac63 100644
--- a/intern/cycles/util/util_texture.h
+++ b/intern/cycles/util/util_texture.h
@@ -38,8 +38,8 @@ CCL_NAMESPACE_BEGIN
/* OpenCL */
#define TEX_NUM_BYTE4_IMAGES_OPENCL 1024
-#define TEX_NUM_FLOAT4_IMAGES_OPENCL 0
-#define TEX_IMAGE_BYTE4_START_OPENCL TEX_NUM_FLOAT4_IMAGES_OPENCL
+#define TEX_NUM_FLOAT4_IMAGES_OPENCL 1024
+#define TEX_IMAGE_BYTE4_START_OPENCL TEX_NUM_FLOAT4_IMAGES_OPENCL
/* Color to use when textures are not found. */