Code cleanup - avoid copy 4/n
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
parent
dc2c810692
commit
6f25994c5e
|
@ -783,10 +783,10 @@ void AUBCommandStreamReceiverHw<GfxFamily>::dumpAllocation(GraphicsAllocation &g
|
|||
|
||||
template <typename GfxFamily>
|
||||
AubSubCaptureStatus AUBCommandStreamReceiverHw<GfxFamily>::checkAndActivateAubSubCapture(const MultiDispatchInfo &dispatchInfo) {
|
||||
std::string kernelName = dispatchInfo.peekMainKernel()->getKernelInfo().kernelDescriptor.kernelMetadata.kernelName;
|
||||
auto &kernelName = dispatchInfo.peekMainKernel()->getKernelInfo().kernelDescriptor.kernelMetadata.kernelName;
|
||||
auto status = subCaptureManager->checkAndActivateSubCapture(kernelName);
|
||||
if (status.isActive) {
|
||||
std::string subCaptureFile = subCaptureManager->getSubCaptureFileName(kernelName);
|
||||
auto &subCaptureFile = subCaptureManager->getSubCaptureFileName(kernelName);
|
||||
auto isReopened = reopenFile(subCaptureFile);
|
||||
if (isReopened) {
|
||||
dumpAubNonWritable = true;
|
||||
|
|
Loading…
Reference in New Issue