performance: change usage for semaphoreBuffer on integrated devices

Related-To: NEO-9421

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
Tomasz Biernacik
2025-04-15 09:02:34 +00:00
committed by Compute-Runtime-Automation
parent bed2ad1ac0
commit eff2d1cde8
2 changed files with 4 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCaching
}
if (hwInfo->capabilityTable.isIntegratedDevice) {
if (AllocationType::ringBuffer == allocationType) {
if (AllocationType::ringBuffer == allocationType || AllocationType::semaphoreBuffer == allocationType) {
return GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER;
}
}

View File

@@ -767,6 +767,7 @@ TEST(GmmTest, givenAllocationTypeWhenGettingUsageTypeThenReturnCorrectValue) {
case AllocationType::internalHostMemory:
case AllocationType::mapAllocation:
case AllocationType::ringBuffer:
case AllocationType::semaphoreBuffer:
case AllocationType::svmCpu:
case AllocationType::svmZeroCopy:
case AllocationType::tagBuffer:
@@ -895,6 +896,7 @@ TEST(GmmTest, givenAllocationTypeAndMitigatedDcFlushWhenGettingUsageTypeThenRetu
break;
case AllocationType::fillPattern:
case AllocationType::ringBuffer:
case AllocationType::semaphoreBuffer:
expectedUsage = GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER;
break;
default:
@@ -919,6 +921,7 @@ TEST(GmmTest, givenAllocationTypeAndMitigatedDcFlushWhenGettingUsageTypeThenRetu
case AllocationType::internalHostMemory:
case AllocationType::mapAllocation:
case AllocationType::ringBuffer:
case AllocationType::semaphoreBuffer:
case AllocationType::svmCpu:
case AllocationType::svmZeroCopy:
case AllocationType::tagBuffer: