v3d: Make sure that QPU instruction-has-a-dest matches VIR.
authorEric Anholt <eric@anholt.net>
Thu, 2 Aug 2018 00:47:13 +0000 (17:47 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 6 Aug 2018 20:03:23 +0000 (13:03 -0700)
commitf2c0d310d6efe560de8192ab468ba02d50c9ac1e
treec67c9f67fb52724755e27babd6fdeb0587779893
parent3f9cb2eb05152f4f0269e97893a16f23261f095b
v3d: Make sure that QPU instruction-has-a-dest matches VIR.

Found when debugging register spilling -- we would try to spill the dest
of a STVPMV, inserting spill code after entering the last segment.  In
fact, we were likely to to choose to do this, given that the STVPMV "dest"
temp was never read from, making it cheap to spill.

Cc: "18.2" <mesa-stable@lists.freedesktop.org>
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c