mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 21:30:23 +01:00
tu: Fix indices of drm_msm_gem_submit_cmd when filling them
For some reason CTS doesn't trigger the issue...
When submit entry is not filled - kernel says:
[drm:msm_ioctl_gem_submit] *ERROR* invalid type: 00000000
Fixes: dbae9fa7d8
("tu: implement sysmem vs gmem autotuner")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16474>
This commit is contained in:
parent
07954a8fd6
commit
9a11ad7efd
1 changed files with 2 additions and 0 deletions
|
|
@ -964,6 +964,7 @@ tu_queue_build_msm_gem_submit_cmds(struct tu_queue *queue,
|
|||
&dev->perfcntrs_pass_cs_entries[submit->perf_pass_index];
|
||||
|
||||
tu_fill_msm_gem_submit(dev, &cmds[entry_idx], perf_cs_entry);
|
||||
entry_idx++;
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < cs->entry_count; ++i, ++entry_idx) {
|
||||
|
|
@ -975,6 +976,7 @@ tu_queue_build_msm_gem_submit_cmds(struct tu_queue *queue,
|
|||
submit->u_trace_submission_data->cmd_trace_data[j].timestamp_copy_cs;
|
||||
if (ts_cs) {
|
||||
tu_fill_msm_gem_submit(dev, &cmds[entry_idx], &ts_cs->entries[0]);
|
||||
entry_idx++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue