Skip to content
Commit 9fdd90c0 authored by Robert Foss's avatar Robert Foss Committed by Gerd Hoffmann
Browse files

drm/virtio: add virtio_gpu_alloc_fence()



Refactor fence creation, add fences to relevant GPU
operations and add cursor helper functions.

This removes the potential for allocation failures from the
cmd_submit and atomic_commit paths.
Now a fence will be allocated first and only after that
will we proceed with the rest of the execution.

Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: default avatarRobert Foss <robert.foss@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181112165157.32765-2-robert.foss@collabora.com
Suggested-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 2ae7f165
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment