gallium/ttn: mark location specially in nir for color0-writes-all
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 27 Jun 2015 21:38:57 +0000 (17:38 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 3 Jul 2015 12:56:09 +0000 (08:56 -0400)
commit0a155538eb7e7870b99fb8b3fd8e2a268361d2c8
tree09d37d8988f338f01594a0b2a87f0727c586bdad
parent959b47262b339ad6d1a072c17a1abe9735ead41d
gallium/ttn: mark location specially in nir for color0-writes-all

We need to distinguish a shader that has separate writes to each MRT
from one which is supposed to write the data from MRT 0 to all the MRTs.
In TGSI this is done with a property. NIR doesn't have that, so encode
it as a funny location and decode on the other end.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
src/gallium/drivers/vc4/vc4_program.c