mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
performance: set timestamps as non-coherent since xe2
Related-To: NEO-14360 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed7482751b
commit
3ba25459e8
@@ -99,13 +99,10 @@ GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCaching
|
||||
return GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER;
|
||||
case AllocationType::gpuTimestampDeviceBuffer:
|
||||
case AllocationType::timestampPacketTagBuffer:
|
||||
if (debugManager.flags.ForceNonCoherentModeForTimestamps.get()) {
|
||||
if (productHelper.isNonCoherentTimestampsModeEnabled()) {
|
||||
return GMM_RESOURCE_USAGE_OCL_BUFFER;
|
||||
}
|
||||
if (productHelper.isDcFlushAllowed()) {
|
||||
return getDefaultUsageTypeWithCachingDisabled(allocationType, productHelper);
|
||||
}
|
||||
return GMM_RESOURCE_USAGE_OCL_BUFFER;
|
||||
return getDefaultUsageTypeWithCachingDisabled(allocationType, productHelper);
|
||||
default:
|
||||
return GMM_RESOURCE_USAGE_OCL_BUFFER;
|
||||
}
|
||||
@@ -118,12 +115,6 @@ GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCaching
|
||||
case AllocationType::internalHeap:
|
||||
case AllocationType::linearStream:
|
||||
return GMM_RESOURCE_USAGE_OCL_SYSTEM_MEMORY_BUFFER_CACHELINE_MISALIGNED;
|
||||
case AllocationType::timestampPacketTagBuffer:
|
||||
case AllocationType::gpuTimestampDeviceBuffer:
|
||||
if (debugManager.flags.ForceNonCoherentModeForTimestamps.get()) {
|
||||
return GMM_RESOURCE_USAGE_OCL_BUFFER;
|
||||
}
|
||||
[[fallthrough]];
|
||||
default:
|
||||
return productHelper.isNewCoherencyModelSupported() ? GMM_RESOURCE_USAGE_OCL_BUFFER_CSR_UC : GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user