mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 23:24:53 +08:00
Add debug flag to read back command buffer pointer
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
88c16542a1
commit
68351249d1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user