@@ -3074,9 +3074,12 @@ CorrelationTarget target)
30743074// --------------------------------------------------------------------------------------------------
30753075void MainWindow::OnCorrelateVulkanDrawCall (const QModelIndex &index)
30763076{
3077+ m_perf_counter_tab_view->ClearSelection ();
3078+
30773079 if (m_pm4_filter_mode_combo_box->currentIndex () != Dive::kBinningPassOnly &&
30783080 m_pm4_filter_mode_combo_box->currentIndex () != Dive::kFirstTilePassOnly )
30793081 {
3082+ OnCorrelateCounter (index);
30803083 ClearViewModelSelection (*m_pm4_command_hierarchy_view, false );
30813084 return ;
30823085 }
@@ -3095,7 +3098,7 @@ void MainWindow::OnCorrelateVulkanDrawCall(const QModelIndex &index)
30953098
30963099 if (!found_gfxr_draw_call_index.has_value ())
30973100 {
3098- ClearViewModelSelection (*m_pm4_command_hierarchy_view, false );
3101+ ClearViewModelSelection (*m_pm4_command_hierarchy_view, true );
30993102 m_command_tab_view->ResetModel ();
31003103 return ;
31013104 }
@@ -3128,6 +3131,7 @@ void MainWindow::OnCorrelateVulkanDrawCall(const QModelIndex &index)
31283131 m_pm4_command_hierarchy_view->scrollTo (proxy_index,
31293132 QAbstractItemView::PositionAtCenter);
31303133 m_pm4_command_hierarchy_view->expand (proxy_index);
3134+ emit CorrelateCounter (found_gfxr_draw_call_index.value ());
31313135 }
31323136 }
31333137
@@ -3138,6 +3142,8 @@ void MainWindow::OnCorrelateVulkanDrawCall(const QModelIndex &index)
31383142// --------------------------------------------------------------------------------------------------
31393143void MainWindow::OnCorrelatePm4DrawCall (const QModelIndex &index)
31403144{
3145+ m_perf_counter_tab_view->ClearSelection ();
3146+
31413147 if (m_pm4_filter_mode_combo_box->currentIndex () != Dive::kBinningPassOnly &&
31423148 m_pm4_filter_mode_combo_box->currentIndex () != Dive::kFirstTilePassOnly )
31433149 {
@@ -3191,7 +3197,7 @@ void MainWindow::OnCorrelatePm4DrawCall(const QModelIndex &index)
31913197
31923198 m_command_hierarchy_view->scrollTo (proxy_index, QAbstractItemView::PositionAtCenter);
31933199 m_command_hierarchy_view->expand (proxy_index);
3194- emit CorrelateCounter (corresponding_gfxr_draw_call_index );
3200+ emit CorrelateCounter (found_pm4_draw_call_index. value () );
31953201 }
31963202 }
31973203
@@ -3275,6 +3281,8 @@ void MainWindow::OnCounterSelected(uint64_t row_index)
32753281 {
32763282 ClearViewModelSelection (*m_pm4_command_hierarchy_view, false );
32773283 }
3284+
3285+ ResetHorizontalScroll (*m_pm4_command_hierarchy_view);
32783286}
32793287
32803288// --------------------------------------------------------------------------------------------------
0 commit comments