mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix: Add debug flag to enable dummy pages
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fcd6172073
commit
844a934c15
@@ -380,6 +380,7 @@ DECLARE_DEBUG_VARIABLE(bool, ForceNonCoherentModeForTimestamps, false, "When act
|
||||
DECLARE_DEBUG_VARIABLE(bool, SetAssumeNotInUse, true, "Set AssumeNotInUse flag in d3d destroy allocation.")
|
||||
DECLARE_DEBUG_VARIABLE(bool, MitigateHostVisibleSignal, false, "Reset host visible signal in CB events, flush L3 when synchronize")
|
||||
DECLARE_DEBUG_VARIABLE(bool, ForceZeroCopyForUseHostPtr, false, "When active all buffer allocations created with CL_MEM_USE_HOST_PTR flag will use share memory with CPU.")
|
||||
DECLARE_DEBUG_VARIABLE(bool, DummyPageBackingEnabled, false, "When true, pass page backing flag to KMD to recover from page faults. Windows only.");
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableReusingGpuTimestamps, -1, "Reuse GPU timestamp for next device time requests. -1: os-specific, 0: disable, 1: enable")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, AllowZeroCopyWithoutCoherency, -1, "Use cacheline flush instead of memory copy for map/unmap mem object")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableHostPtrTracking, -1, "Enable host ptr tracking: -1 - default platform setting, 0 - disabled, 1 - enabled")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2024 Intel Corporation
|
||||
* Copyright (C) 2021-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -158,13 +158,14 @@ struct CREATECONTEXT_PVTDATA { // NOLINT(readability-identifier-naming)
|
||||
unsigned long *pHwContextId;
|
||||
uint32_t NumberOfHwContextIds; // NOLINT(readability-identifier-naming)
|
||||
|
||||
uint32_t ProcessID; // NOLINT(readability-identifier-naming)
|
||||
uint8_t IsProtectedProcess; // NOLINT(readability-identifier-naming)
|
||||
uint8_t IsDwm; // NOLINT(readability-identifier-naming)
|
||||
uint8_t IsMediaUsage; // NOLINT(readability-identifier-naming)
|
||||
uint8_t GpuVAContext; // NOLINT(readability-identifier-naming)
|
||||
BOOLEAN NoRingFlushes; // NOLINT(readability-identifier-naming)
|
||||
uint32_t UmdContextType; // NOLINT(readability-identifier-naming)
|
||||
uint32_t ProcessID; // NOLINT(readability-identifier-naming)
|
||||
uint8_t IsProtectedProcess; // NOLINT(readability-identifier-naming)
|
||||
uint8_t IsDwm; // NOLINT(readability-identifier-naming)
|
||||
uint8_t IsMediaUsage; // NOLINT(readability-identifier-naming)
|
||||
uint8_t GpuVAContext; // NOLINT(readability-identifier-naming)
|
||||
BOOLEAN NoRingFlushes; // NOLINT(readability-identifier-naming)
|
||||
BOOLEAN DummyPageBackingEnabled; // NOLINT(readability-identifier-naming)
|
||||
uint32_t UmdContextType; // NOLINT(readability-identifier-naming)
|
||||
};
|
||||
|
||||
struct PLATFORM_KMD : PLATFORM_GMM { // NOLINT(readability-identifier-naming)
|
||||
|
||||
@@ -1006,6 +1006,7 @@ bool Wddm::createContext(OsContextWin &osContext) {
|
||||
privateData.ProcessID = NEO::SysCalls::getProcessId();
|
||||
privateData.pHwContextId = &hwContextId;
|
||||
privateData.NoRingFlushes = debugManager.flags.UseNoRingFlushesKmdMode.get();
|
||||
privateData.DummyPageBackingEnabled = debugManager.flags.DummyPageBackingEnabled.get();
|
||||
|
||||
applyAdditionalContextFlags(privateData, osContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user