st/nine: Fixes warning about implicit conversion
authorAxel Davy <davyaxel0@gmail.com>
Sat, 10 Mar 2018 13:28:10 +0000 (14:28 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Sun, 18 Mar 2018 21:53:42 +0000 (22:53 +0100)
Makes the conversion explicit.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=102542
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
CC: "17.3 18.0" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/nine_ff.c

index eb673e4aff9fa3cafd82f248b6128065835d64b3..6c30839b29bd170c3a8a8e86fa2fba2c1593494d 100644 (file)
@@ -1935,7 +1935,7 @@ nine_ff_load_lights(struct NineDevice9 *device)
         dst[38 + l * 8].x = cosf(light->Theta * 0.5f);
         dst[38 + l * 8].y = cosf(light->Phi * 0.5f);
         dst[38 + l * 8].z = 1.0f / (dst[38 + l * 8].x - dst[38 + l * 8].y);
-        dst[39 + l * 8].w = (l + 1) == context->ff.num_lights_active;
+        dst[39 + l * 8].w = (float)((l + 1) == context->ff.num_lights_active);
     }
 }