Disable L1 for Gen12lp

Change-Id: I3b0ec2a6ea9a3bb72507ff66d314bfb1ad7a6a81
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2020-10-12 10:13:29 +02:00
committed by sys_ocldev
parent ef76c7bdf6
commit 38ca6e9862
4 changed files with 32 additions and 12 deletions

View File

@@ -56,8 +56,8 @@ void EncodeSurfaceState<Family>::encodeExtraBufferParams(R_SURFACE_STATE *surfac
const bool isConstantSurface = allocation && allocation->getAllocationType() == GraphicsAllocation::AllocationType::CONSTANT_SURFACE;
bool useL1 = isReadOnly || isConstantSurface;
if (DebugManager.flags.ForceL1Caching.get() != -1) {
useL1 = !!DebugManager.flags.ForceL1Caching.get();
if (DebugManager.flags.ForceL1Caching.get() != 1) {
useL1 = false;
}
if (useL1) {

View File

@@ -243,8 +243,8 @@ bool HwHelperHw<Family>::useOnlyGlobalTimestamps() const {
template <>
uint32_t HwHelperHw<Family>::getMocsIndex(const GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) const {
if (l3enabled) {
if (DebugManager.flags.ForceL1Caching.get() != -1) {
l1enabled = !!DebugManager.flags.ForceL1Caching.get();
if (DebugManager.flags.ForceL1Caching.get() != 1) {
l1enabled = false;
}
if (l1enabled) {