radeonsi: Implement DCC fast clear.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 23 Oct 2015 23:47:45 +0000 (01:47 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 24 Oct 2015 15:46:08 +0000 (17:46 +0200)
commit6529daca391912246c13e6f76e885026d2ce88be
tree406dd85d9f375949c1bb2278c798e68cc9224a90
parent205a3ce5c158349dda7082f44e95301526b9f183
radeonsi: Implement DCC fast clear.

Uses the DCC buffer instead of the CMASK buffer. The ELIMINATE_FAST_CLEAR
still works. Furthermore, with DCC compression we can directly clear
to a limited set of colors such that we do not need a postprocessing step.

v2 Marek: check dcc_buffer && dirty_level_mask in set_sampler_view

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_blit.c
src/gallium/drivers/radeonsi/si_descriptors.c