performance: Refactor cmd buffer reuse for cmd lists

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-01-17 13:04:27 +00:00
committed by Compute-Runtime-Automation
parent ec40fdc382
commit d2eb29660d
3 changed files with 71 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2023 Intel Corporation
* Copyright (C) 2018-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -336,7 +336,11 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
}
SubmissionStatus flushTagUpdate() override {
flushTagUpdateCalled = true;
return CommandStreamReceiverHw<GfxFamily>::flushTagUpdate();
auto ret = SubmissionStatus::success;
if (this->callFlushTagUpdate) {
ret = CommandStreamReceiverHw<GfxFamily>::flushTagUpdate();
}
return ret;
}
void initProgrammingFlags() override {
@@ -505,6 +509,7 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
std::atomic_bool downloadAllocationsCalled = false;
bool flushBatchedSubmissionsCalled = false;
bool flushTagUpdateCalled = false;
bool callFlushTagUpdate = true;
bool initProgrammingFlagsCalled = false;
bool multiOsContextCapable = false;
bool memoryCompressionEnabled = false;