mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
refactor: correct naming of enum class constants 1/n
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1fcafd460a
commit
da957d1a37
@@ -388,11 +388,11 @@ uint64_t GfxCoreHelperHw<Family>::getPatIndex(CacheRegion cacheRegion, CachePoli
|
||||
*/
|
||||
|
||||
if ((debugManager.flags.ForceAllResourcesUncached.get() == true)) {
|
||||
cacheRegion = CacheRegion::Default;
|
||||
cachePolicy = CachePolicy::Uncached;
|
||||
cacheRegion = CacheRegion::defaultRegion;
|
||||
cachePolicy = CachePolicy::uncached;
|
||||
}
|
||||
|
||||
UNRECOVERABLE_IF((cacheRegion > CacheRegion::Default) && (cachePolicy < CachePolicy::WriteThrough));
|
||||
UNRECOVERABLE_IF((cacheRegion > CacheRegion::defaultRegion) && (cachePolicy < CachePolicy::writeThrough));
|
||||
return (static_cast<uint32_t>(cachePolicy) + (static_cast<uint16_t>(cacheRegion) * 2));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user