mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +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>
32 lines
656 B
C++
32 lines
656 B
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "igfxfmid.h"
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
class GraphicsAllocation;
|
|
bool isL3Capable(void *ptr, size_t size);
|
|
bool isL3Capable(const GraphicsAllocation &graphicsAllocation);
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
struct L1CachePolicyHelper {
|
|
|
|
static const char *getCachingPolicyOptions(bool isDebuggerActive);
|
|
|
|
static uint32_t getDefaultL1CachePolicy(bool isDebuggerActive);
|
|
|
|
static uint32_t getUncachedL1CachePolicy();
|
|
|
|
static uint32_t getL1CachePolicy(bool isDebuggerActive);
|
|
};
|
|
|
|
} // namespace NEO
|