From f552b1b4e9c3c6dabcbdc8d680349e48d6a1afe3 Mon Sep 17 00:00:00 2001 From: Steve Karolewics Date: Sat, 5 Feb 2022 21:03:37 -0800 Subject: [PATCH] Prevent focus reset when typing in the compute debug selector --- qrenderdoc/Widgets/ComputeDebugSelector.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qrenderdoc/Widgets/ComputeDebugSelector.cpp b/qrenderdoc/Widgets/ComputeDebugSelector.cpp index 117142e49..7b6ba5cab 100644 --- a/qrenderdoc/Widgets/ComputeDebugSelector.cpp +++ b/qrenderdoc/Widgets/ComputeDebugSelector.cpp @@ -86,6 +86,9 @@ void ComputeDebugSelector::SetThreadBounds(const rdcfixedarray &gro void ComputeDebugSelector::SyncGroupThreadValue() { + QSignalBlocker blockers[3] = {QSignalBlocker(ui->dispatchX), QSignalBlocker(ui->dispatchY), + QSignalBlocker(ui->dispatchZ)}; + ui->dispatchX->setValue(ui->groupX->value() * m_threadGroupSize[0] + ui->threadX->value()); ui->dispatchY->setValue(ui->groupY->value() * m_threadGroupSize[1] + ui->threadY->value()); ui->dispatchZ->setValue(ui->groupZ->value() * m_threadGroupSize[2] + ui->threadZ->value()); @@ -100,6 +103,10 @@ void ComputeDebugSelector::SyncDispatchThreadValue() ui->dispatchY->value() % m_threadGroupSize[1], ui->dispatchZ->value() % m_threadGroupSize[2]}; + QSignalBlocker blockers[6] = {QSignalBlocker(ui->groupX), QSignalBlocker(ui->groupY), + QSignalBlocker(ui->groupZ), QSignalBlocker(ui->threadX), + QSignalBlocker(ui->threadY), QSignalBlocker(ui->threadZ)}; + ui->groupX->setValue(group[0]); ui->groupY->setValue(group[1]); ui->groupZ->setValue(group[2]);