intel: Stop redirecting state cache to command streamer cache section

This bit redirects the state cache from the unified/RO sections of the
L3 cache to the "CS command buffer" section of the cache, which would
be set up via TCCNTLREG.  The documentation says:

   "Additionaly, this redirection should be enabled only if there is a
    non-zero allocation for the CS command buffer section."

We don't allocate any cache to the CS command buffer section, so
enabling this redirection effectively disabled the state cache.
The Windows driver only sets up that section when using POSH, which
we do not currently use.  So, leave it unallocated and disable the
redirection to get a functional state cache again.

Improves performance in Civilization VI by 18%, Manhattan 3.0 by 6%,
and Car Chase by 2%.
This commit is contained in:
Kenneth Graunke
2019-08-30 17:00:22 -07:00
parent 68be5ff8d0
commit 0d0ae16e8f
3 changed files with 0 additions and 23 deletions

View File

@@ -273,18 +273,6 @@ genX(init_device_state)(struct anv_device *device)
lri.DataDWord = half_slice_chicken7;
}
/* WaEnableStateCacheRedirectToCS:icl */
uint32_t slice_common_eco_chicken1;
anv_pack_struct(&slice_common_eco_chicken1,
GENX(SLICE_COMMON_ECO_CHICKEN1),
.StateCacheRedirectToCSSectionEnable = true,
.StateCacheRedirectToCSSectionEnableMask = true);
anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) {
lri.RegisterOffset = GENX(SLICE_COMMON_ECO_CHICKEN1_num);
lri.DataDWord = slice_common_eco_chicken1;
}
#endif
genX(emit_slice_hashing_state)(device, &batch);