summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
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);