Skip to content
Commit bd008e5b authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter
Browse files

drm: Implement O_NONBLOCK support on /dev/dri/cardN



The implmentation is simple in the extreme: we only want to wait for
events if the device was opened in blocking mode, otherwise we grab what
is available and report an error if there was none.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Testcase: igt/kms_flip/nonblocing_read
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 1bcecfac
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