Revert "Change DG2 l1 cache policy to WB"

This reverts commit 9a5e619c42.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-07-28 06:53:44 +02:00
committed by Compute-Runtime-Automation
parent fd99ea7259
commit b3078cfbae
22 changed files with 65 additions and 180 deletions

View File

@@ -20,11 +20,19 @@ bool isL3Capable(const GraphicsAllocation &graphicsAllocation);
template <PRODUCT_FAMILY gfxProduct>
struct L1CachePolicyHelper {
static const char *getCachingPolicyOptions();
static uint32_t getDefaultL1CachePolicy();
static uint32_t getDefaultL1CachePolicy() {
return 0u;
}
static uint32_t getL1CachePolicy();
static uint32_t getL1CachePolicy() {
if (DebugManager.flags.OverrideL1CachePolicyInSurfaceStateAndStateless.get() != -1) {
return DebugManager.flags.OverrideL1CachePolicyInSurfaceStateAndStateless.get();
}
return L1CachePolicyHelper<gfxProduct>::getDefaultL1CachePolicy();
}
};
} // namespace NEO