nv50, nvc0: only clear out the buffers that we were asked to clear
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 16 Jan 2014 23:52:49 +0000 (18:52 -0500)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 27 Jan 2014 15:40:42 +0000 (16:40 +0100)
commite05de038bf651220b529c386d88039636aacd410
treeaf8cd89e7e0d75a3b3410fbc59c4c92b38195ffa
parentc75eeab60936810eb1a2641961b5ecf6f77a2abd
nv50, nvc0: only clear out the buffers that we were asked to clear

Fixes fbo-drawbuffers-none glClearBuffer piglit test.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/drivers/nouveau/nv50/nv50_surface.c
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c