radeonsi: Lazily re-set sampler views after disabling DCC
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 10 Mar 2016 16:57:41 +0000 (17:57 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 11 Mar 2016 16:51:15 +0000 (11:51 -0500)
commit417b6721a007a1e6b425758ffce32fd805d81f16
tree3879137c98408f9406ef1f4387adc4a3ac1935d4
parentaf3454cad58be3df63c7fe6caf9604f651a6ce54
radeonsi: Lazily re-set sampler views after disabling DCC

Clear DCC flags if necessary when binding a new sampler view.

v2: Do not reset DCC flags of bound sampler views.
v3: Check that we have a real texture (Nicolai)

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_descriptors.c