[Bf-blender-cvs] [13881f59720] cycles-x: Fix wrong half-float usage in Cycles X

Sergey Sharybin noreply at git.blender.org
Wed Jun 9 10:19:24 CEST 2021


Commit: 13881f5972080c957df15ad5a6de453968cd09b8
Author: Sergey Sharybin
Date:   Wed Jun 9 10:18:36 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB13881f5972080c957df15ad5a6de453968cd09b8

Fix wrong half-float usage in Cycles X

Was generating strict compiler warning.

Probably not measurable for users since this was not code path
which is executed yet.

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

M	intern/cycles/integrator/pass_accessor.cpp

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

diff --git a/intern/cycles/integrator/pass_accessor.cpp b/intern/cycles/integrator/pass_accessor.cpp
index 97269fbd51a..4c372a1e0bc 100644
--- a/intern/cycles/integrator/pass_accessor.cpp
+++ b/intern/cycles/integrator/pass_accessor.cpp
@@ -127,7 +127,7 @@ static void pad_pixels(const BufferParams &buffer_params,
   }
 
   if (destination.pixels_half_rgba) {
-    const float one = float_to_half(1.0f);
+    const half one = float_to_half(1.0f);
     half4 *pixel = destination.pixels_half_rgba;
 
     for (size_t i = 0; i < size; i++, pixel++) {



More information about the Bf-blender-cvs mailing list