L0 Win Debug - read StateSave and moduleDebug header

Related-to: NEO-7162
Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
This commit is contained in:
Yates, Brandon
2022-06-29 14:40:45 +00:00
committed by Compute-Runtime-Automation
parent b225c63b9a
commit 7ccde3fb20
7 changed files with 236 additions and 14 deletions

View File

@@ -68,7 +68,11 @@ struct WddmEuDebugInterfaceMock : public WddmMock {
case DBGUMD_ACTION_READ_GFX_MEMORY: {
void *dst = reinterpret_cast<void *>(pEscapeInfo->KmEuDbgL0EscapeInfo.ReadGfxMemoryParams.MemoryBufferPtr);
size_t size = pEscapeInfo->KmEuDbgL0EscapeInfo.ReadGfxMemoryParams.MemoryBufferSize;
memset(dst, 0xaa, size);
if (srcReadBuffer) {
memcpy(dst, srcReadBuffer, size);
} else {
memset(dst, 0xaa, size);
}
pEscapeInfo->KmEuDbgL0EscapeInfo.EscapeReturnStatus = escapeReturnStatus;
break;
}
@@ -122,6 +126,7 @@ struct WddmEuDebugInterfaceMock : public WddmMock {
static constexpr size_t bufferSize = 16;
uint8_t testBuffer[bufferSize] = {0};
uint64_t mockGpuVa = 0x12345678;
void *srcReadBuffer = nullptr;
};
} // namespace NEO