panfrost/midgard: Map more bany/ball opcodes
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 25 Mar 2019 00:12:06 +0000 (00:12 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 26 Mar 2019 23:35:20 +0000 (23:35 +0000)
commit53664108c2906e6c6d7fb79d61686ec9cb65fd8d
tree8b4ff7982287490834368c6c2ff86d14fb6cf415
parent88b2a6b451ac4e8cbbef21a8cb01b549e06f40ba
panfrost/midgard: Map more bany/ball opcodes

Some of these are not yet fully functional due to related bugs, but this
the correct op mapping. The native ball/bany opcodes act on vec4's
unconditionally. That said, both ball and bany have the nice property
that duplicating an argument does not affect their output, so the
default "hanging swizzles" allow us to implement 2/3-component opcodes
correctly, implicitly lowering.

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