summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-22 10:44:09 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-22 10:44:09 +0200
commita6535c8db4614376ce8ecb7d889b92db066a96cc (patch)
tree90b4676d1e0b9316e0fe735d596f79b175200171 /linux-core
parent7058d06317e17253d874bf4df7b09d0d52a5fd74 (diff)
Add a fence object class field for future use (For example VSYNC fence objects)
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h1
-rw-r--r--linux-core/drm_fence.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 8f8f324e..5a4a37fc 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -963,6 +963,7 @@ typedef struct drm_fence_object{
*/
struct list_head ring;
+ int class;
volatile uint32_t type;
volatile uint32_t signaled;
uint32_t sequence;
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index fc27c576..cfcda2b2 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -397,6 +397,7 @@ int drm_fence_object_init(drm_device_t * dev, uint32_t type, int emit,
write_lock_irqsave(&fm->lock, flags);
INIT_LIST_HEAD(&fence->ring);
+ fence->class = 0;
fence->type = type;
fence->flush_mask = 0;
fence->submitted_flush = 0;
@@ -577,6 +578,7 @@ int drm_fence_ioctl(DRM_IOCTL_ARGS)
return -EINVAL;
}
read_lock_irqsave(&fm->lock, flags);
+ arg.class = fence->class;
arg.type = fence->type;
arg.signaled = fence->signaled;
read_unlock_irqrestore(&fm->lock, flags);