diff options
author | Eric Anholt <[email protected]> | 2014-09-03 11:57:47 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-04 11:39:50 -0700 |
commit | 511d2f9a133f95e0ab01de2aa05acdb23fb588d4 (patch) | |
tree | d0fc3a8187693963416a686bef2372d4eee4539e /src/gallium/drivers/vc4/vc4_opt_algebraic.c | |
parent | e69b4abc43d8b5ef72716eb6409e76e98f0df28f (diff) |
state_tracker: Fix bug in conditional discards with native ints.
A bool is 0 or ~0, and KILL_IF takes a float arg that's <0 for discard or
>= 0 for not. By negating it, we ended up doing a floating point subtract
of (0 - ~0), which ended up as an inf. To make this actually work, we
need to convert the bool to a float.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_opt_algebraic.c')
0 files changed, 0 insertions, 0 deletions