r600g: fast color clears for single-sample buffers
authorGrigori Goronzy <greg@chown.ath.cx>
Tue, 10 Sep 2013 23:41:40 +0000 (01:41 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 20 Sep 2013 18:35:55 +0000 (20:35 +0200)
commitedbbfac6cfc634e697d7f981155a5072c52d77ac
tree9c04a73fc8b27b2f02bc167b71048c3546314a51
parent56d9a397aa2dbee6b12e1bbe56be39f426e1e34d
r600g: fast color clears for single-sample buffers

Allocate a CMASK on demand and use it to fast clear single-sample
colorbuffers. Both FBOs and window system colorbuffers are fast
cleared. Expand as needed when colorbuffers are mapped or displayed
on screen.

v2: cosmetics, move transfer expansion into dma_blit

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c