mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
vc4: Don't record the seqno of a failed job submit.
On an error return, the returned seqno will probably be unset, so we'd lose track of what we've submitted so far for waiting on in the future. Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org> Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
0e06f76a84
commit
2a449ce7c9
1 changed files with 2 additions and 2 deletions
|
|
@ -245,11 +245,11 @@ vc4_job_submit(struct vc4_context *vc4)
|
|||
fprintf(stderr, "Draw call returned %s. "
|
||||
"Expect corruption.\n", strerror(errno));
|
||||
warned = true;
|
||||
} else if (!ret) {
|
||||
vc4->last_emit_seqno = submit.seqno;
|
||||
}
|
||||
}
|
||||
|
||||
vc4->last_emit_seqno = submit.seqno;
|
||||
|
||||
if (vc4_debug & VC4_DEBUG_ALWAYS_SYNC) {
|
||||
if (!vc4_wait_seqno(vc4->screen, vc4->last_emit_seqno,
|
||||
PIPE_TIMEOUT_INFINITE, "sync")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue