diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2016-04-12 10:55:44 +0200 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-05-04 08:07:49 +0200 |
commit | b902377a56b802d4fca95fb3733f47e466dfe501 (patch) | |
tree | 14be5478a492dc448bfe8e4dd7640c4d1e568f92 /src/compiler/nir/nir_opt_algebraic.py | |
parent | 9f81434c5f593bd50a9069c5e845a5730ed501db (diff) |
nir/lower_double_ops: lower mod()
There are rounding errors with the division in i965 that affect
the mod(x,y) result when x = N * y. Instead of returning '0' it
was returning 'y'.
This lowering pass fixes those cases.
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_algebraic.py')
0 files changed, 0 insertions, 0 deletions