radeonsi: flush CB after MSAA only when transitioning from CB to textures
authorMarek Olšák <marek.olsak@amd.com>
Wed, 14 Jun 2017 23:42:46 +0000 (01:42 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
commit2638250fecab821c27c95d7bc48a212cd269c708
tree3b29f2825dfe471d05c1d031d8ea81613db33956
parent51c219739ccb3672a0beaa0a51b37933f4ecaebd
radeonsi: flush CB after MSAA only when transitioning from CB to textures

The main flush before texturing is done after the FMASK decompress pass.

CB after MSAA rendering is not flushed in set_framebuffer_state and also
not in memory_barrier if the current color buffer is MSAA. We fully rely
on the FMASK decompress pass for the flushing.

Some CB decompress and resolve passes need an explicit flush before and
after.

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