Files
compute-runtime/shared/test/common/mocks/mock_wddm_residency_controller.h
Szymon Morek b8f181d50e performance: remove trim candidate list
Related-To: NEO-11755

Removing trim candidate list reduces overhead
caused by residency handling. Allocations required
for eviction are placed in eviction container managed
by CSR.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-23 12:21:50 +02:00

28 lines
805 B
C++

/*
* Copyright (C) 2023-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/windows/wddm_residency_controller.h"
namespace NEO {
class MockWddmResidencyController : public WddmResidencyController {
public:
using WddmResidencyController::lastTrimFenceValue;
using WddmResidencyController::lock;
using WddmResidencyController::trimCallbackHandle;
using WddmResidencyController::trimResidency;
using WddmResidencyController::trimResidencyToBudget;
using WddmResidencyController::WddmResidencyController;
uint32_t acquireLockCallCount = 0u;
std::unique_lock<SpinLock> acquireLock() override {
acquireLockCallCount++;
return WddmResidencyController::acquireLock();
}
};
} // namespace NEO