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:
Mateusz Jablonski
2023-10-04 08:46:56 +00:00
committed by Compute-Runtime-Automation
parent e996241063
commit 747d44f8fc
2 changed files with 3 additions and 1 deletions

View File

@@ -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