summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-09-24 15:51:13 +0200
committerErik Faye-Lund <[email protected]>2020-01-14 12:01:29 +0100
commit9aab36b6eb82ac1d0bc992b52eca319b409eeada (patch)
tree5074921edc48e395119ebc3407a40c1eeb377d3d /src/mesa
parentfcdd3c866bac6aaabef7057519931f675df156fc (diff)
mesa/st: use float literals
This removes a warning on MSVC. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_tgsi_lower_yuv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_tgsi_lower_yuv.c b/src/mesa/state_tracker/st_tgsi_lower_yuv.c
index 2ca069d2dba..f43eadc0b5c 100644
--- a/src/mesa/state_tracker/st_tgsi_lower_yuv.c
+++ b/src/mesa/state_tracker/st_tgsi_lower_yuv.c
@@ -191,10 +191,10 @@ emit_decls(struct tgsi_transform_context *tctx)
*/
/* ITU-R BT.601 conversion */
- emit_immed(tctx, 0, 1.164, 0.000, 1.596, 0.0);
- emit_immed(tctx, 1, 1.164, -0.392, -0.813, 0.0);
- emit_immed(tctx, 2, 1.164, 2.017, 0.000, 0.0);
- emit_immed(tctx, 3, 0.0625, 0.500, 0.500, 1.0);
+ emit_immed(tctx, 0, 1.164f, 0.000f, 1.596f, 0.0f);
+ emit_immed(tctx, 1, 1.164f, -0.392f, -0.813f, 0.0f);
+ emit_immed(tctx, 2, 1.164f, 2.017f, 0.000f, 0.0f);
+ emit_immed(tctx, 3, 0.0625f, 0.500f, 0.500f, 1.0f);
/*
* Declare extra samplers / sampler-views: