mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
nouveau: Bail out from nouveau_fence_wait if flushing the pushbuf fails.
This commit is contained in:
parent
543d032885
commit
12f65e38c0
1 changed files with 4 additions and 2 deletions
|
|
@ -195,8 +195,10 @@ nouveau_fence_wait(struct nouveau_fence *fence)
|
|||
if (fence == screen->fence.current)
|
||||
nouveau_fence_new(screen, &screen->fence.current, FALSE);
|
||||
}
|
||||
if (fence->state < NOUVEAU_FENCE_STATE_FLUSHED)
|
||||
nouveau_pushbuf_kick(screen->pushbuf, screen->pushbuf->channel);
|
||||
if (fence->state < NOUVEAU_FENCE_STATE_FLUSHED) {
|
||||
if (nouveau_pushbuf_kick(screen->pushbuf, screen->pushbuf->channel))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
do {
|
||||
nouveau_fence_update(screen, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue