Skip to content
Commit f803a45e authored by Rob Clark's avatar Rob Clark
Browse files

add libsync.h helper



Rather than cut/pasting these couple ioctl wrappers everywhere, just
stuff them as static-inline into a header.

This is probably mostly used from mesa, but some drivers, test apps, etc
may also want to use it from libdrm.

v2: handle EINTR, add sync_accumulate() based on #dri-devel discussion,
    etc

Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 6493860d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment