summaryrefslogtreecommitdiff
path: root/linux-core/drm_fence.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-25 18:05:35 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-25 18:05:35 +0200
commit4c03030b12bae28dad50d69bd271de632c43ff13 (patch)
tree5f719dc1e98584077b2a257be2d548143583fe3c /linux-core/drm_fence.c
parent8fa43d4b2ff4137bab743bfaf6282aa327f16830 (diff)
Checkpoint commit
Buffer object code.
Diffstat (limited to 'linux-core/drm_fence.c')
-rw-r--r--linux-core/drm_fence.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index cfcda2b2..897f84c5 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -252,12 +252,17 @@ static void drm_fence_flush_exe(drm_fence_manager_t * fm,
}
}
+int drm_fence_object_signaled(drm_fence_object_t * fence, uint32_t type)
+{
+ return ((fence->signaled & type) == type);
+}
+
/*
* Make sure old fence objects are signaled before their fence sequences are
* wrapped around and reused.
*/
-static int drm_fence_object_flush(drm_device_t * dev,
+int drm_fence_object_flush(drm_device_t * dev,
drm_fence_object_t * fence, uint32_t type)
{
drm_fence_manager_t *fm = &dev->fm;
@@ -317,8 +322,8 @@ void drm_fence_flush_old(drm_device_t * dev, uint32_t sequence)
EXPORT_SYMBOL(drm_fence_flush_old);
-static int drm_fence_object_wait(drm_device_t * dev, drm_fence_object_t * fence,
- int lazy, int ignore_signals, uint32_t mask)
+int drm_fence_object_wait(drm_device_t * dev, drm_fence_object_t * fence,
+ int lazy, int ignore_signals, uint32_t mask)
{
drm_fence_manager_t *fm = &dev->fm;
drm_fence_driver_t *driver = dev->driver->fence_driver;