nv50, nvc0: clear out RT on a null cbuf
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 15 Jan 2014 07:14:06 +0000 (02:14 -0500)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 27 Jan 2014 15:40:42 +0000 (16:40 +0100)
commitc75eeab60936810eb1a2641961b5ecf6f77a2abd
tree4bc38309b427c8ab938df4ab05990e0c02d2a873
parent3f264e16e29a870b4b3b605590c718c35bb1a91c
nv50, nvc0: clear out RT on a null cbuf

This is needed since commit 9baa45f78b (st/mesa: bind NULL colorbuffers
as specified by glDrawBuffers).

This implementation is highly based on a larger commit by
Christoph Bumiller <e0425955@student.tuwien.ac.at> in his gallium-nine
branch.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/drivers/nouveau/nv50/nv50_defs.xml.h
src/gallium/drivers/nouveau/nv50/nv50_formats.c
src/gallium/drivers/nouveau/nv50/nv50_state_validate.c
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c