mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Cleaned up files: opencl/source/execution_environment/cl_execution_environment.h opencl/source/helpers/cl_validators.h opencl/test/unit_test/mocks/mock_cl_device.h opencl/test/unit_test/mocks/mock_context.h shared/source/helpers/cache_policy.h shared/source/image/image_surface_state.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
26 lines
882 B
C++
26 lines
882 B
C++
/*
|
|
* Copyright (C) 2022-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
#include "shared/source/helpers/cache_policy.h"
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
#include "shared/source/xe_hpg_core/hw_cmds.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
uint32_t L1CachePolicyHelper<gfxProduct>::getL1CachePolicy(bool isDebuggerActive) {
|
|
if (DebugManager.flags.ForceAllResourcesUncached.get()) {
|
|
return L1CachePolicyHelper<gfxProduct>::getUncachedL1CachePolicy();
|
|
}
|
|
if (DebugManager.flags.OverrideL1CachePolicyInSurfaceStateAndStateless.get() != -1) {
|
|
return DebugManager.flags.OverrideL1CachePolicyInSurfaceStateAndStateless.get();
|
|
}
|
|
return L1CachePolicyHelper<gfxProduct>::getDefaultL1CachePolicy(isDebuggerActive);
|
|
}
|
|
|
|
} // namespace NEO
|