mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
fix: make paging fence address volatile
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1128f3d808
commit
556a116987
@@ -159,7 +159,7 @@ class Wddm : public DriverModel {
|
||||
}
|
||||
|
||||
unsigned int getEnablePreemptionRegValue();
|
||||
MOCKABLE_VIRTUAL uint64_t *getPagingFenceAddress() {
|
||||
MOCKABLE_VIRTUAL volatile uint64_t *getPagingFenceAddress() {
|
||||
return pagingFenceAddress;
|
||||
}
|
||||
WddmResidentAllocationsContainer *getTemporaryResourcesContainer() {
|
||||
@@ -289,7 +289,7 @@ class Wddm : public DriverModel {
|
||||
static GetSystemInfoFcn getSystemInfo;
|
||||
RootDeviceEnvironment &rootDeviceEnvironment;
|
||||
|
||||
uint64_t *pagingFenceAddress = nullptr;
|
||||
volatile uint64_t *pagingFenceAddress = nullptr;
|
||||
int64_t pagingFenceDelayTime = 0;
|
||||
|
||||
uintptr_t maximumApplicationAddress = 0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -25,7 +25,7 @@ constexpr bool wddmResidencyLoggingAvailable = false;
|
||||
|
||||
class WddmResidencyLogger : NonCopyableOrMovableClass {
|
||||
public:
|
||||
WddmResidencyLogger(unsigned int device, void *fenceValueCpuVirtualAddress, std::string outDirectory) {
|
||||
WddmResidencyLogger(unsigned int device, volatile void *fenceValueCpuVirtualAddress, std::string outDirectory) {
|
||||
const char *wddmResidencyLoggerDefaultDirectory = "unk";
|
||||
|
||||
std::stringstream id;
|
||||
|
||||
Reference in New Issue
Block a user