panfrost/midgard: Add fcsel_i opcode
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 24 Mar 2019 22:27:06 +0000 (22:27 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 26 Mar 2019 23:35:15 +0000 (23:35 +0000)
commit89fdbb67072f0a1e62fda812f9c07bcf9ec79ea1
tree11eb27df6860dcfe887d63ac66e8688dfb31a20c
parent121417ef1d3d5b1b039174eb171cedab59f2deb0
panfrost/midgard: Add fcsel_i opcode

Whereas a normal fcsel acts on a boolean input in r31.w, the fcsel_i
variant acts on an integer input in r31.w, which can be preloaded with
an instruction like imov (with the appropriate negate flag on the
source).

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