fix: Add printf surface to dc flush mitigation logic

Related-To: NEO-10556

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-06-19 09:25:33 +00:00
committed by Compute-Runtime-Automation
parent 62bf873b63
commit 5794ee8100
3 changed files with 5 additions and 2 deletions

View File

@@ -750,6 +750,7 @@ TEST(GmmTest, givenAllocationTypeAndMitigatedDcFlushWhenGettingUsageTypeThenRetu
case AllocationType::gpuTimestampDeviceBuffer:
case AllocationType::bufferHostMemory:
case AllocationType::tagBuffer:
case AllocationType::printfSurface:
expectedUsage = uncachedGmmUsageType;
break;

View File

@@ -328,7 +328,8 @@ HWTEST_F(ProductHelperTest, givenDcFlushMitigationWhenOverridePatAndUsageForDcFl
allocationType == AllocationType::tagBuffer ||
allocationType == AllocationType::gpuTimestampDeviceBuffer ||
allocationType == AllocationType::linearStream ||
allocationType == AllocationType::internalHeap) {
allocationType == AllocationType::internalHeap ||
allocationType == AllocationType::printfSurface) {
EXPECT_EQ(productHelper->overridePatAndUsageForDcFlushMitigation(allocationType), productHelper->isDcFlushMitigated());
} else {
EXPECT_FALSE(productHelper->overridePatAndUsageForDcFlushMitigation(allocationType));