mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
With compiler LSC WAs this gives better performance. If debugger is active, policy will not be changed ie. will be WBP. Related-To: NEO-7003 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
34 lines
723 B
C++
34 lines
723 B
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
#include "igfxfmid.h"
|
|
|
|
#include <cstdint>
|
|
#include <stddef.h>
|
|
|
|
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
|