mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9d592b59bd
commit
58d8c907cd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user