panfrost/midgard: Reduce fmax(a, 0.0) to fmov.pos
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 24 Apr 2019 23:42:30 +0000 (23:42 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 25 Apr 2019 20:37:45 +0000 (20:37 +0000)
commit7bc91b487b5ad926803e8d7260b14052a72ae8cf
treeacec1dff4817c95c9ea5641c081e8ac5ecd001f2
parent295536d47a459727a6e0807fd23b9c13ee1b41f5
panfrost/midgard: Reduce fmax(a, 0.0) to fmov.pos

This will allow us to copyprop away the move and eliminate the
instruction entirely.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/midgard/midgard_compile.c