diff options
author | Matt Turner <[email protected]> | 2019-01-27 12:38:19 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2019-01-29 15:02:23 -0800 |
commit | 9de90caca82c6c5b459724dc73534dff28bd8841 (patch) | |
tree | a19df94201235e7461ff01cd0636391076724125 /src/egl/wayland | |
parent | 3e249b853ebb679656975b48aca91f76fc1d2fd2 (diff) |
nir: Optimize double-precision lower_round_even()
Use the trick of adding and then subtracting 2**52 (52 is the number of
explicit mantissa bits a double-precision floating-point value has) to
implement round-to-even.
Cuts the number of instructions on SKL of the piglit test
fs-roundEven-double.shader_test from 109 to 21.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/egl/wayland')
0 files changed, 0 insertions, 0 deletions