broadcom/vc5: Fix discard_if during control flow.
authorEric Anholt <eric@anholt.net>
Fri, 29 Dec 2017 00:01:09 +0000 (16:01 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 3 Jan 2018 22:31:36 +0000 (14:31 -0800)
commite60e3a56a2edfdf773a388d4dfc0791137f039f1
tree9a2661611b695c78d8a93fcbf7aa4f2b42e4619c
parent7836c85919a289e806c4dbd3e7d080914049b130
broadcom/vc5: Fix discard_if during control flow.

I want to do the SETMSF.IFA to discard only if execute == 0 and cond, so
our dest of the PUSHZ needs to be nonzero if execute or !cond are nonzero.

Fixes dEQP-GLES3.functional.shaders.discard.dynamic_loop_dynamic.
src/broadcom/compiler/nir_to_vir.c