summaryrefslogtreecommitdiffstats
path: root/src/etnaviv
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2020-04-02 12:14:12 -0700
committerDylan Baker <[email protected]>2020-05-12 11:08:39 -0700
commit787cecdb02f9345eeb28d3e13b96494c3d6dae61 (patch)
tree31a1e36d31eed98fc57bf45514fba1590649a9e3 /src/etnaviv
parent061d24b4b21173a53bf795895e5d4c524c6d8365 (diff)
nir/algebraic: Optimize ushr of pack_half, not ishr
When a = -1.0, pack_half_2x16(vec2(0x0000, 0xBC00)) will produce 0xBC000000. The ishr will produce 0xFFFFBC00. The replacement pack_half_2x16(vec2(0xBC00, 0x0000)) will produce 0x0000BC00. Fixes: 1f72857739b ("nir/algebraic: add some half packing optimizations") Reviewed-by: Rhys Perry <[email protected]> Reviewed-by: Matt Turner <[email protected]> Cc: Connor Abbott <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4515> (cherry picked from commit a2bf41ec6527fbedc2a75a8072d7222298bca347)
Diffstat (limited to 'src/etnaviv')
0 files changed, 0 insertions, 0 deletions