mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
pan/cs: Fix the tracepoint register dump loops
The increment was wrong, which ended up generating a lot more stores
than we need.
Fixes: bf05842a8d ("pan/cs: Add an event-based tracing mechanism")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Benjamin Lee <benjamin.lee@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32973>
This commit is contained in:
parent
ebf9dae2e9
commit
e8514fb4c4
1 changed files with 3 additions and 3 deletions
|
|
@ -1983,7 +1983,7 @@ cs_trace_run_idvs(struct cs_builder *b, const struct cs_tracing_ctx *ctx,
|
|||
cs_store32(b, draw_id, tracebuf_addr,
|
||||
cs_trace_field_offset(run_idvs, draw_id));
|
||||
|
||||
for (unsigned i = 0; i < 48; i++)
|
||||
for (unsigned i = 0; i < 48; i += 16)
|
||||
cs_store(b, cs_reg_tuple(b, i, 16), tracebuf_addr, BITFIELD_MASK(16),
|
||||
cs_trace_field_offset(run_idvs, sr[i]));
|
||||
cs_store(b, cs_reg_tuple(b, 48, 13), tracebuf_addr, BITFIELD_MASK(13),
|
||||
|
|
@ -2019,7 +2019,7 @@ cs_trace_run_compute(struct cs_builder *b, const struct cs_tracing_ctx *ctx,
|
|||
cs_run_compute(b, task_increment, task_axis, progress_inc, res_sel);
|
||||
cs_store64(b, data, tracebuf_addr, cs_trace_field_offset(run_compute, ip));
|
||||
|
||||
for (unsigned i = 0; i < 32; i++)
|
||||
for (unsigned i = 0; i < 32; i += 16)
|
||||
cs_store(b, cs_reg_tuple(b, i, 16), tracebuf_addr, BITFIELD_MASK(16),
|
||||
cs_trace_field_offset(run_compute, sr[i]));
|
||||
cs_store(b, cs_reg_tuple(b, 32, 8), tracebuf_addr, BITFIELD_MASK(8),
|
||||
|
|
@ -2051,7 +2051,7 @@ cs_trace_run_compute_indirect(struct cs_builder *b,
|
|||
cs_run_compute_indirect(b, wg_per_task, progress_inc, res_sel);
|
||||
cs_store64(b, data, tracebuf_addr, cs_trace_field_offset(run_compute, ip));
|
||||
|
||||
for (unsigned i = 0; i < 32; i++)
|
||||
for (unsigned i = 0; i < 32; i += 16)
|
||||
cs_store(b, cs_reg_tuple(b, i, 16), tracebuf_addr, BITFIELD_MASK(16),
|
||||
cs_trace_field_offset(run_compute, sr[i]));
|
||||
cs_store(b, cs_reg_tuple(b, 32, 8), tracebuf_addr, BITFIELD_MASK(8),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue