diff options
author | Ian Romanick <[email protected]> | 2019-04-30 08:00:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2019-05-01 09:07:47 -0700 |
commit | 85e6865ff62390c632909a07a46deab54c742963 (patch) | |
tree | 40d1b6ebcaacde5a6b7424fcd445fe9c47119104 /Android.common.mk | |
parent | 70da00ffd65e56c8c8cc6ecfcec462fb52ee5102 (diff) |
nir: Saturating integer arithmetic is not associative
In 8-bits,
iadd_sat(iadd_sat(0x7f, 0x7f), -1) =
iadd_sat(0x7f, -1) =
0x7e
but,
iadd_sat(0x7f, iadd_sat(0x7f, -1)) =
iadd_sat(0x7f, 0x7e) =
0x7f
Fixes: 272e927d0e9 ("nir/spirv: initial handling of OpenCL.std extension opcodes")
Reviewed-by: Karol Herbst <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'Android.common.mk')
0 files changed, 0 insertions, 0 deletions