Add debug flag to read back command buffer pointer

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-03-29 11:51:44 +00:00
committed by Compute-Runtime-Automation
parent 88c16542a1
commit 68351249d1
7 changed files with 62 additions and 3 deletions

View File

@@ -106,14 +106,20 @@ class TestedDrmCommandStreamReceiver : public DrmCommandStreamReceiver<GfxFamily
}
}
bool callHwFlush = true;
int flushInternal(const BatchBuffer &batchBuffer, const ResidencyContainer &allocationsForResidency) override {
if (callHwFlush) {
return DrmCommandStreamReceiver<GfxFamily>::flushInternal(batchBuffer, allocationsForResidency);
}
return 0;
}
void readBackAllocation(void *source) override {
latestReadBackAddress = source;
DrmCommandStreamReceiver<GfxFamily>::readBackAllocation(source);
}
void *latestReadBackAddress = nullptr;
bool callHwFlush = true;
};
template <typename GfxFamily>