mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
fd99ea7259
commit
b3078cfbae
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user