diff options
author | Brian Paul <[email protected]> | 2013-03-20 10:56:24 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-03-21 09:24:35 -0600 |
commit | 2e3200d4636d61c936bdacf6752b82dd39c96dcb (patch) | |
tree | beae66f962f6867f5ef4dec05c2b8604c3942a45 | |
parent | f7b07fd25ce76a049f9d9f43c4c2d4c290bf79e6 (diff) |
softpipe: silence some MSVC float/double warnings
-rw-r--r-- | src/gallium/drivers/softpipe/sp_setup.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c index 8cb4fc16133..3dad131d881 100644 --- a/src/gallium/drivers/softpipe/sp_setup.c +++ b/src/gallium/drivers/softpipe/sp_setup.c @@ -578,15 +578,15 @@ setup_fragcoord_coeff(struct setup_context *setup, uint slot) const struct tgsi_shader_info *fsInfo = &setup->softpipe->fs_variant->info; /*X*/ - setup->coef[slot].a0[0] = fsInfo->pixel_center_integer ? 0.0 : 0.5; - setup->coef[slot].dadx[0] = 1.0; - setup->coef[slot].dady[0] = 0.0; + setup->coef[slot].a0[0] = fsInfo->pixel_center_integer ? 0.0f : 0.5f; + setup->coef[slot].dadx[0] = 1.0f; + setup->coef[slot].dady[0] = 0.0f; /*Y*/ setup->coef[slot].a0[1] = (fsInfo->origin_lower_left ? setup->softpipe->framebuffer.height-1 : 0) - + (fsInfo->pixel_center_integer ? 0.0 : 0.5); - setup->coef[slot].dadx[1] = 0.0; - setup->coef[slot].dady[1] = fsInfo->origin_lower_left ? -1.0 : 1.0; + + (fsInfo->pixel_center_integer ? 0.0f : 0.5f); + setup->coef[slot].dadx[1] = 0.0f; + setup->coef[slot].dady[1] = fsInfo->origin_lower_left ? -1.0f : 1.0f; /*Z*/ setup->coef[slot].a0[2] = setup->posCoef.a0[2]; setup->coef[slot].dadx[2] = setup->posCoef.dadx[2]; |