summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_drv.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2016-09-05 08:09:04 +0200
committerGreg Kroah-Hartman2016-09-05 08:09:04 +0200
commit2f5bb02ff22414ce156cacb163dd594b017af357 (patch)
tree5213feb307367fdffb993ed03ed3094ec92021ea /drivers/gpu/drm/vc4/vc4_drv.h
parentdevice core: Remove deprecated create_singlethread_workqueue (diff)
parentLinux 4.8-rc5 (diff)
downloadkernel-qcow2-linux-2f5bb02ff22414ce156cacb163dd594b017af357.tar.gz
kernel-qcow2-linux-2f5bb02ff22414ce156cacb163dd594b017af357.tar.xz
kernel-qcow2-linux-2f5bb02ff22414ce156cacb163dd594b017af357.zip
Merge 4.8-rc5 into driver-core-next
We want the sysfs and kernfs in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.h')
-rw-r--r--drivers/gpu/drm/vc4/vc4_drv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h
index 489e3de0c050..428e24919ef1 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.h
+++ b/drivers/gpu/drm/vc4/vc4_drv.h
@@ -321,6 +321,15 @@ vc4_first_render_job(struct vc4_dev *vc4)
struct vc4_exec_info, head);
}
+static inline struct vc4_exec_info *
+vc4_last_render_job(struct vc4_dev *vc4)
+{
+ if (list_empty(&vc4->render_job_list))
+ return NULL;
+ return list_last_entry(&vc4->render_job_list,
+ struct vc4_exec_info, head);
+}
+
/**
* struct vc4_texture_sample_info - saves the offsets into the UBO for texture
* setup parameters.