mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
feature: add memsetAllocation helper with blitter support
Related-To: NEO-12287 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c8b64f1970
commit
226846323f
@@ -91,6 +91,11 @@ class MockWddmMemoryManager : public MemoryManagerCreate<WddmMemoryManager> {
|
||||
return BaseClass::copyMemoryToAllocationBanks(graphicsAllocation, destinationOffset, memoryToCopy, sizeToCopy, handleMask);
|
||||
}
|
||||
|
||||
bool memsetAllocationBanks(GraphicsAllocation *graphicsAllocation, size_t destinationOffset, int value, size_t sizeToSet, DeviceBitfield handleMask) override {
|
||||
memsetAllocationBanksCalled++;
|
||||
return BaseClass::memsetAllocationBanks(graphicsAllocation, destinationOffset, value, sizeToSet, handleMask);
|
||||
}
|
||||
|
||||
void freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation, bool isImportedAllocation) override {
|
||||
BaseClass::freeGraphicsMemoryImpl(gfxAllocation, isImportedAllocation);
|
||||
}
|
||||
@@ -105,6 +110,7 @@ class MockWddmMemoryManager : public MemoryManagerCreate<WddmMemoryManager> {
|
||||
BaseClass::registerAllocationInOs(gfxAllocation);
|
||||
}
|
||||
uint32_t copyMemoryToAllocationBanksCalled = 0u;
|
||||
uint32_t memsetAllocationBanksCalled = 0u;
|
||||
uint32_t freeGraphicsMemoryImplCalled = 0u;
|
||||
uint32_t registerAllocationInOsCalled = 0;
|
||||
bool allocationGraphicsMemory64kbCreated = false;
|
||||
|
||||
Reference in New Issue
Block a user