radeonsi: flush DB caches only when transitioning from DB to texturing
authorMarek Olšák <marek.olsak@amd.com>
Wed, 14 Jun 2017 22:34:08 +0000 (00:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
commit226361082705be990804569ee731cd3d21749deb
tree6eee370851e190e596f4c99b801560f44e008f17
parentfdca690e91f932b494611a9e8808778405138808
radeonsi: flush DB caches only when transitioning from DB to texturing

Use the mechanism of si_decompress_textures, but instead of doing
the actual decompression, just flag the DB cache flush there.

This removes a lot of unnecessary DB cache flushes.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_blit.c
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state_draw.c