mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
panvk/csf: fix SIMULTANEOUS_USE gpu faults
tracing_ctx is always non-NULL in issue_fragment_jobs. Check
tracing_ctx->enabled instead. This fixes GPU faults when the desc
ringbuf wraps.
Fixes: bd49fa68b0 ("panvk/csf: Use event-based CS tracing")
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32469>
This commit is contained in:
parent
cbc45ac99e
commit
c83b3de729
1 changed files with 1 additions and 1 deletions
|
|
@ -2339,7 +2339,7 @@ issue_fragment_jobs(struct panvk_cmd_buffer *cmdbuf)
|
|||
/* Update the ring buffer position. */
|
||||
if (free_render_descs) {
|
||||
cs_render_desc_ringbuf_move_ptr(b, calc_render_descs_size(cmdbuf),
|
||||
!tracing_ctx);
|
||||
!tracing_ctx->enabled);
|
||||
}
|
||||
|
||||
/* Update the frag seqno. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue