fix: do not cache tag buffer allocation on GPU

Related-To: NEO-14360

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-09-24 14:41:36 +00:00
committed by Compute-Runtime-Automation
parent 3b93e23156
commit 804b8f5db6
2 changed files with 8 additions and 3 deletions

View File

@@ -56,12 +56,11 @@ GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCaching
}
if (hwInfo->capabilityTable.isIntegratedDevice) {
if (productHelper.isResourceUncachedForCS(allocationType)) {
if (productHelper.isResourceUncachedForCS(allocationType) || AllocationType::tagBuffer == allocationType) {
return GMM_RESOURCE_USAGE_OCL_BUFFER_CSR_UC;
} else if (AllocationType::semaphoreBuffer == allocationType) {
return GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER;
} else if (AllocationType::tagBuffer == allocationType ||
AllocationType::hostFunction == allocationType) {
} else if (AllocationType::hostFunction == allocationType) {
return GMM_RESOURCE_USAGE_OCL_BUFFER;
}
}

View File

@@ -772,6 +772,9 @@ TEST(GmmTest, givenAllocationTypeWhenGettingUsageTypeThenReturnCorrectValue) {
case AllocationType::printfSurface:
expectedUsage = forceUncached ? uncachedGmmUsageType : GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER;
break;
case AllocationType::tagBuffer:
expectedUsage = forceUncached ? uncachedGmmUsageType : GMM_RESOURCE_USAGE_OCL_BUFFER_CSR_UC;
break;
case AllocationType::semaphoreBuffer:
case AllocationType::ringBuffer:
case AllocationType::commandBuffer:
@@ -871,6 +874,9 @@ TEST(GmmTest, givenAllocationTypeAndMitigatedDcFlushWhenGettingUsageTypeThenRetu
case AllocationType::printfSurface:
expectedUsage = GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER;
break;
case AllocationType::tagBuffer:
expectedUsage = GMM_RESOURCE_USAGE_OCL_BUFFER_CSR_UC;
break;
case AllocationType::semaphoreBuffer:
case AllocationType::ringBuffer:
case AllocationType::commandBuffer: