feature: blocking makeResident for mapVirtualMem

Related-To: NEO-14547

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
This commit is contained in:
Chandio, Bibrak Qamar
2025-04-18 20:57:43 +00:00
committed by Compute-Runtime-Automation
parent 9d592b59bd
commit 58d8c907cd
3 changed files with 61 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ class MockMemoryOperations : public MemoryOperationsHandler {
MemoryOperationsStatus makeResident(Device *device, ArrayRef<GraphicsAllocation *> gfxAllocations, bool isDummyExecNeeded, const bool forcePagingFence) override {
makeResidentCalledCount++;
makeResidentForcePagingFenceValue = forcePagingFence;
if (captureGfxAllocationsForMakeResident) {
for (auto &gfxAllocation : gfxAllocations) {
if (!gfxAllocation->getAubInfo().writeMemoryOnly) {
@@ -117,6 +118,7 @@ class MockMemoryOperations : public MemoryOperationsHandler {
std::vector<GraphicsAllocation *> gfxAllocationsForMakeResident{};
int makeResidentCalledCount = 0;
bool makeResidentForcePagingFenceValue = false;
int evictCalledCount = 0;
int freeCalledCount = 0;
uint32_t isResidentCalledCount = 0;