mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 02:50:16 +01:00
nouveau: check if a fence has already been signalled
nouveau_fence_update does real work unconditionally. Avoid doing that if the fence we're checking on has already been signalled. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
c11096c749
commit
bbc4a7bd31
1 changed files with 3 additions and 0 deletions
|
|
@ -174,6 +174,9 @@ nouveau_fence_signalled(struct nouveau_fence *fence)
|
|||
{
|
||||
struct nouveau_screen *screen = fence->screen;
|
||||
|
||||
if (fence->state == NOUVEAU_FENCE_STATE_SIGNALLED)
|
||||
return TRUE;
|
||||
|
||||
if (fence->state >= NOUVEAU_FENCE_STATE_EMITTED)
|
||||
nouveau_fence_update(screen, FALSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue