diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_const.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_const.c b/src/gallium/drivers/llvmpipe/lp_bld_const.c index d36a610234..73dc9678de 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_const.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_const.c @@ -48,7 +48,9 @@ unsigned lp_const_shift(union lp_type type) { - if(type.fixed) + if(type.floating) + return 0; + else if(type.fixed) return type.width/2; else if(type.norm) return type.sign ? type.width - 1 : type.width; |