radeonsi: don't enable DCC in the sampler if first_level doesn't have it
authorMarek Olšák <marek.olsak@amd.com>
Mon, 6 Jun 2016 15:33:42 +0000 (17:33 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 7 Jun 2016 22:22:45 +0000 (00:22 +0200)
commitc06246501ed9c095a3fa9f8fe2a5dadd1df55271
treeb7295a61aba04b755f8219c1157f154111b46f36
parent00389100b63d03adf70892b721d1b2e8b8d5e48a
radeonsi: don't enable DCC in the sampler if first_level doesn't have it

If first_level > 0 and DCC is disabled for that level, let's skip DCC
reads entirely.

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