mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
fix: add unrecoverable in case of allocation type unknown
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e996241063
commit
747d44f8fc
@@ -19,6 +19,7 @@ namespace NEO {
|
||||
|
||||
GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getGmmUsageType(AllocationType allocationType, bool forceUncached, const ProductHelper &productHelper) {
|
||||
if (DebugManager.flags.ForceUncachedGmmUsageType.get()) {
|
||||
UNRECOVERABLE_IF(allocationType == AllocationType::UNKNOWN);
|
||||
if ((1llu << (static_cast<int64_t>(allocationType) - 1)) & DebugManager.flags.ForceUncachedGmmUsageType.get()) {
|
||||
forceUncached = true;
|
||||
}
|
||||
@@ -103,4 +104,4 @@ GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCaching
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user