nv50: remove nouveau_fence_signalled prior nouveau_fence_wait

nouveau_fence_wait handles signalled fences just as well.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: M Henning <drawoc@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10752>
This commit is contained in:
Karol Herbst 2021-05-07 18:16:12 +02:00 committed by Marge Bot
parent 0642f95c4e
commit 88b76f8492

View file

@ -624,7 +624,7 @@ nv50_draw_elements(struct nv50_context *nv50, bool shorten,
* the not-yet-written data. Ideally this wait would only happen on
* pushbuf submit, but it's probably not a big performance difference.
*/
if (buf->fence_wr && !nouveau_fence_signalled(buf->fence_wr))
if (buf->fence_wr)
nouveau_fence_wait(buf->fence_wr, &nv50->base.debug);
while (instance_count--) {