nvc0: treat all draws without color0 broadcast as MRT
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Jan 2020 05:07:05 +0000 (00:07 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Jan 2020 17:11:16 +0000 (12:11 -0500)
commit201b88a93bb9d42a3baf349f83756df1d562da29
tree828036623aba0ae0dafcee3c7e43e7c1810c14f9
parent3e9aacb139dc4cb101780e235fc5dd45acf860f3
nvc0: treat all draws without color0 broadcast as MRT

Per the semi-recently-released NVIDIA docs, when this bit is not
enabled, then the result for RT[0] will be used. So if e.g. only a
single RT is drawn to and it's not RT[2], the results will not be
visible. Fixes
GTF-GL45.gtf33.GL3Tests.explicit_attrib_location.explicit_attrib_location_pipeline
which was failing due to a frag shader outputting only to location=2.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_program.c