diff options
author | michal <michal@michal-laptop.(none)> | 2007-08-16 12:16:27 +0100 |
---|---|---|
committer | michal <michal@michal-laptop.(none)> | 2007-08-16 12:16:27 +0100 |
commit | e36b27cf86fb767a4a9754480abe9e299c746cf7 (patch) | |
tree | 00810814a681722a53cf4272a1cc29f95b04996f /src/mesa | |
parent | 830169414e2886c2224d62a1a601cc951dcd4b08 (diff) |
Silence warnings.
Diffstat (limited to 'src/mesa')
-rwxr-xr-x[-rw-r--r--] | src/mesa/pipe/softpipe/sp_quad_fs.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c index 0a345bbf11..c2decfecf8 100644..100755 --- a/src/mesa/pipe/softpipe/sp_quad_fs.c +++ b/src/mesa/pipe/softpipe/sp_quad_fs.c @@ -73,9 +73,8 @@ shade_quad( { struct quad_shade_stage *qss = quad_shade_stage( qs ); struct softpipe_context *softpipe = qs->softpipe; - const float fx = quad->x0; - const float fy = quad->y0; - unsigned attr, i; + const float fx = (float) quad->x0; + const float fy = (float) quad->y0; struct tgsi_exec_machine machine; #if USE_ALIGNED_ATTRIBS @@ -111,14 +110,14 @@ shade_quad( machine.InterpCoefs = quad->coef; machine.Inputs[0].xyzw[0].f[0] = fx; - machine.Inputs[0].xyzw[0].f[1] = fx + 1.0; + machine.Inputs[0].xyzw[0].f[1] = fx + 1.0f; machine.Inputs[0].xyzw[0].f[2] = fx; - machine.Inputs[0].xyzw[0].f[3] = fx + 1.0; + machine.Inputs[0].xyzw[0].f[3] = fx + 1.0f; machine.Inputs[0].xyzw[1].f[0] = fy; machine.Inputs[0].xyzw[1].f[1] = fy; - machine.Inputs[0].xyzw[1].f[2] = fy + 1.0; - machine.Inputs[0].xyzw[1].f[3] = fy + 1.0; + machine.Inputs[0].xyzw[1].f[2] = fy + 1.0f; + machine.Inputs[0].xyzw[1].f[3] = fy + 1.0f; /* run shader */ tgsi_exec_machine_run( &machine ); |