tu: Fix preemption latency selector values
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

I suspect this was unnoticed because write_preempt_counters_to_iova()
would overwrite the selectors.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41315>
This commit is contained in:
Rob Clark 2026-04-30 10:06:18 -07:00 committed by Marge Bot
parent b430ca522e
commit f694b2ac6f

View file

@ -2061,10 +2061,10 @@ tu_autotune::emit_switch_away_amble(struct tu_cs *cs) const
static size_t counter = 0;
if (counter++ % 2 == 0) {
tu_cs_emit_pkt4(cs, preemption_latency_selector_reg, 1);
tu_cs_emit(cs, always_count_selector);
tu_cs_emit(cs, preemption_latency_selector);
tu_cs_emit_pkt4(cs, always_count_selector_reg, 1);
tu_cs_emit(cs, preemption_latency_selector);
tu_cs_emit(cs, always_count_selector);
}
tu_cond_exec_end(cs);