broadcom/vc5: Use SETMSF to handle discards.
authorEric Anholt <eric@anholt.net>
Fri, 20 Oct 2017 21:00:11 +0000 (14:00 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Oct 2017 22:59:41 +0000 (15:59 -0700)
commit9b5fa214f4c1872b8961f81d93cd1394b5bba8ff
treeeb6570248493e078e06c2e64e54c5f98fc5c0a45
parenta48a38937cabad68fcda23defc2c9d4145d267d4
broadcom/vc5: Use SETMSF to handle discards.

A bit of spec text suggested that (like vc4) condition codes should be
used for discards, and the simulator was fine with it, but the 7268
disagrees and you have to use SETMSF instead or the color comes through.
Fixes glsl-fs-discard-01 and many of the interpolation-with-clipping
tests.
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h