aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/trident/trident_lock.h
blob: ee0819f5caa4700ee1e97d24b903f04e5dc67b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* XXX tridentGetLock doesn't exist... */

#define LOCK_HARDWARE(tmesa) \
    do { \
        char __ret = 0; \
        DRM_CAS(tmesa->driHwLock, tmesa->hHWContext, \
            DRM_LOCK_HELD | tmesa->hHWContext, __ret); \
    } while (0)

#define UNLOCK_HARDWARE(tmesa) \
    DRM_UNLOCK(tmesa->driFd, tmesa->driHwLock, tmesa->hHWContext)