summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_program.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-07-14 11:54:15 -0700
committerEric Anholt <[email protected]>2015-07-14 15:17:58 -0700
commit9476b11d6edc67403dd7c5aaddbc375400e02425 (patch)
treeef24a05c1cfe82804ad97208c09630c99272cd57 /src/gallium/drivers/vc4/vc4_program.c
parent320089dbd63de3ac1bd3d42ee8cec41837486d8c (diff)
vc4: Fix some -Wdouble-promotion warnings.
No code generation changes from this, but it'll be useful to have this next time I go checking -Wdouble-promotion.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index df440f627ec..f0bfe24c68a 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -558,7 +558,7 @@ ntq_fsin(struct vc4_compile *c, struct qreg src)
struct qreg scaled_x =
qir_FMUL(c,
src,
- qir_uniform_f(c, 1.0f / (M_PI * 2.0f)));
+ qir_uniform_f(c, 1.0 / (M_PI * 2.0)));
struct qreg x = qir_FADD(c,
ntq_ffract(c, scaled_x),