mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
CacheSettingsHelper - CONSTANT_SURFACE support
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
173c86d6f1
commit
20419b8f3c
@@ -34,6 +34,11 @@ GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCaching
|
||||
return getDefaultUsageTypeWithCachingDisabled(allocationType);
|
||||
}
|
||||
return GMM_RESOURCE_USAGE_OCL_STATE_HEAP_BUFFER;
|
||||
case AllocationType::CONSTANT_SURFACE:
|
||||
if (DebugManager.flags.ForceL1Caching.get() == 0) {
|
||||
return getDefaultUsageTypeWithCachingDisabled(allocationType);
|
||||
}
|
||||
return GMM_RESOURCE_USAGE_OCL_BUFFER_CONST;
|
||||
case AllocationType::BUFFER:
|
||||
case AllocationType::BUFFER_HOST_MEMORY:
|
||||
case AllocationType::EXTERNAL_HOST_PTR:
|
||||
|
||||
Reference in New Issue
Block a user