diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-04-29 22:51:48 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-05-24 02:55:44 -0400 |
commit | 875ac34aad49bb875833aed2b4f2deb7a28df9f0 (patch) | |
tree | 254aedbbc3c838471090154a9d14d29ad86211de /drivers/gpu/drm/nouveau/nouveau_drv.h | |
parent | 35bcf5d55540e47091a67e5962f12b88d51d7131 (diff) |
drm/nouveau/fence: make ttm interfaces wrap ours, not the other way around
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.h | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index dce621555433..b17444ae05c8 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h | |||
@@ -1458,34 +1458,11 @@ extern void nouveau_fence_work(struct nouveau_fence *fence, | |||
1458 | void *priv); | 1458 | void *priv); |
1459 | struct nouveau_channel *nouveau_fence_channel(struct nouveau_fence *); | 1459 | struct nouveau_channel *nouveau_fence_channel(struct nouveau_fence *); |
1460 | 1460 | ||
1461 | extern bool __nouveau_fence_signalled(void *obj, void *arg); | 1461 | extern bool nouveau_fence_signalled(struct nouveau_fence *); |
1462 | extern int __nouveau_fence_wait(void *obj, void *arg, bool lazy, bool intr); | 1462 | extern int nouveau_fence_wait(struct nouveau_fence *, bool lazy, bool intr); |
1463 | extern int __nouveau_fence_flush(void *obj, void *arg); | 1463 | extern void nouveau_fence_unref(struct nouveau_fence **); |
1464 | extern void __nouveau_fence_unref(void **obj); | 1464 | extern struct nouveau_fence *nouveau_fence_ref(struct nouveau_fence *); |
1465 | extern void *__nouveau_fence_ref(void *obj); | ||
1466 | |||
1467 | static inline bool nouveau_fence_signalled(struct nouveau_fence *obj) | ||
1468 | { | ||
1469 | return __nouveau_fence_signalled(obj, NULL); | ||
1470 | } | ||
1471 | static inline int | ||
1472 | nouveau_fence_wait(struct nouveau_fence *obj, bool lazy, bool intr) | ||
1473 | { | ||
1474 | return __nouveau_fence_wait(obj, NULL, lazy, intr); | ||
1475 | } | ||
1476 | extern int nouveau_fence_sync(struct nouveau_fence *, struct nouveau_channel *); | 1465 | extern int nouveau_fence_sync(struct nouveau_fence *, struct nouveau_channel *); |
1477 | static inline int nouveau_fence_flush(struct nouveau_fence *obj) | ||
1478 | { | ||
1479 | return __nouveau_fence_flush(obj, NULL); | ||
1480 | } | ||
1481 | static inline void nouveau_fence_unref(struct nouveau_fence **obj) | ||
1482 | { | ||
1483 | __nouveau_fence_unref((void **)obj); | ||
1484 | } | ||
1485 | static inline struct nouveau_fence *nouveau_fence_ref(struct nouveau_fence *obj) | ||
1486 | { | ||
1487 | return __nouveau_fence_ref(obj); | ||
1488 | } | ||
1489 | 1466 | ||
1490 | /* nouveau_gem.c */ | 1467 | /* nouveau_gem.c */ |
1491 | extern int nouveau_gem_new(struct drm_device *, int size, int align, | 1468 | extern int nouveau_gem_new(struct drm_device *, int size, int align, |