OSDN Git Service

radeonsi: Don't force dcc disable for loads
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 5 Jun 2019 10:37:46 +0000 (12:37 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 6 Jun 2019 15:14:28 +0000 (17:14 +0200)
commit1d55b0da59dd4b863df7c35f697409e80b1ffd50
treec69061e805110e1d4ac94633d5d94277316d7ba8
parent10895c39c338d9e4a00c86590bdfd4e30bd2acfe
radeonsi: Don't force dcc disable for loads

When e9d935ed0e2 added force_dcc_off(), we forced it off for any
preloaded image descriptor which had stores associated with them, since
the same preloaded descriptors were used for loads and stores. However,
when the preloading was removed in 16be87c9042, the existing logic was
kept despite it not being necessary anymore. The comment above
force_dcc_off() only mentions stores, so only force DCC off for stores.

Cc: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c