v3d: Refactor bcsel and if condition handling.
authorEric Anholt <eric@anholt.net>
Wed, 13 Feb 2019 20:39:08 +0000 (12:39 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 19 Feb 2019 02:09:06 +0000 (18:09 -0800)
commit718eef62cb7f3379ea6c64c68d58f5fa613f08ac
treedd25f678807e0b83064e761bd16838b247241ea1
parent4586f9f9024bd8211256b8382f316aa5e3b57d37
v3d: Refactor bcsel and if condition handling.

Both were doing the same thing to try to get a condition to predicate on.
Noticed when I wanted to do this for discard_if as well.

No change in shader-db.
src/broadcom/compiler/nir_to_vir.c