v3d: writes to magic registers aren't RF writes after THREND
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 24 Jul 2019 20:01:00 +0000 (22:01 +0200)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Thu, 5 Sep 2019 21:54:13 +0000 (22:54 +0100)
commita5df0fa0b1d821a3d3f6f483b0c712aff3dad364
treee3c0d353423c9468be1a872ef85938375cbb78bd
parent1dce75c1839f08cfa78400367019f998c258eff5
v3d: writes to magic registers aren't RF writes after THREND

Shaders must not attempt to write to the register files in the last
three instructions, but that doesn't include the magic registers:

nop                  ; nop               ; thrsw; ldtmu.- *** ERROR ***
nop                  ; nop
nop                  ; nop

v2: Simplify validation rules. (Eric Anholt)
v3: Adjust validation even more. (Eric Anholt)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/broadcom/compiler/qpu_validate.c