mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
llvmpipe: Fix floating point const scale factor.
This commit is contained in:
parent
e6ebebc485
commit
d52dce0ffb
1 changed files with 3 additions and 1 deletions
|
|
@ -48,7 +48,9 @@
|
||||||
unsigned
|
unsigned
|
||||||
lp_const_shift(union lp_type type)
|
lp_const_shift(union lp_type type)
|
||||||
{
|
{
|
||||||
if(type.fixed)
|
if(type.floating)
|
||||||
|
return 0;
|
||||||
|
else if(type.fixed)
|
||||||
return type.width/2;
|
return type.width/2;
|
||||||
else if(type.norm)
|
else if(type.norm)
|
||||||
return type.sign ? type.width - 1 : type.width;
|
return type.sign ? type.width - 1 : type.width;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue