fix: Update completion fence for all switched ring buffers

Related-To: GSD-4966

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2023-06-14 11:23:00 +00:00
committed by Compute-Runtime-Automation
parent a622ddba64
commit 13b0fb59f7
2 changed files with 58 additions and 3 deletions

View File

@@ -230,9 +230,9 @@ void DrmDirectSubmission<GfxFamily, Dispatcher>::handleSwitchRingBuffers() {
if (this->disableMonitorFence) {
this->currentTagData.tagValue++;
bool updateCompletionFences = this->ringStart;
if (DebugManager.flags.EnableRingSwitchTagUpdateWa.get() == 0) {
updateCompletionFences = true;
bool updateCompletionFences = true;
if (DebugManager.flags.EnableRingSwitchTagUpdateWa.get() != -1) {
updateCompletionFences = !DebugManager.flags.EnableRingSwitchTagUpdateWa.get() || this->ringStart;
}
if (updateCompletionFences) {