mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Debug mask support to force uncached Gmm usage type
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5f38555af5
commit
56a164ffcd
@@ -15,6 +15,12 @@
|
||||
namespace NEO {
|
||||
|
||||
GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getGmmUsageType(AllocationType allocationType, bool forceUncached, const HardwareInfo &hwInfo) {
|
||||
if (DebugManager.flags.ForceUncachedGmmUsageType.get()) {
|
||||
if ((1llu << (static_cast<int64_t>(allocationType) - 1)) & DebugManager.flags.ForceUncachedGmmUsageType.get()) {
|
||||
forceUncached = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (forceUncached || DebugManager.flags.ForceAllResourcesUncached.get()) {
|
||||
return getDefaultUsageTypeWithCachingDisabled(allocationType);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user