[Bf-blender-cvs] [f27e122d95a] blender-v2.83-release: Fix T76925: Cycles OpenCL compile error with some drivers on Linux

Brecht Van Lommel noreply at git.blender.org
Fri May 22 21:50:37 CEST 2020


Commit: f27e122d95a4c682365c592585a9d78392192809
Author: Brecht Van Lommel
Date:   Fri May 22 19:02:49 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBf27e122d95a4c682365c592585a9d78392192809

Fix T76925: Cycles OpenCL compile error with some drivers on Linux

===================================================================

M	intern/cycles/kernel/kernel_film.h

===================================================================

diff --git a/intern/cycles/kernel/kernel_film.h b/intern/cycles/kernel/kernel_film.h
index 3829426f261..8344f4b4f47 100644
--- a/intern/cycles/kernel/kernel_film.h
+++ b/intern/cycles/kernel/kernel_film.h
@@ -28,13 +28,13 @@ ccl_device float4 film_get_pass_result(KernelGlobals *kg,
   int display_pass_components = kernel_data.film.display_pass_components;
 
   if (display_pass_components == 4) {
-    ccl_global float4 *in = (ccl_global float4 *)(buffer + display_pass_stride +
-                                                  index * kernel_data.film.pass_stride);
+    float4 in = *(ccl_global float4 *)(buffer + display_pass_stride +
+                                       index * kernel_data.film.pass_stride);
     float alpha = use_display_sample_scale ?
-                      (kernel_data.film.use_display_pass_alpha ? in->w : 1.0f / sample_scale) :
+                      (kernel_data.film.use_display_pass_alpha ? in.w : 1.0f / sample_scale) :
                       1.0f;
 
-    pass_result = make_float4(in->x, in->y, in->z, alpha);
+    pass_result = make_float4(in.x, in.y, in.z, alpha);
 
     int display_divide_pass_stride = kernel_data.film.display_divide_pass_stride;
     if (display_divide_pass_stride != -1) {



More information about the Bf-blender-cvs mailing list