summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/v3d/v3d_drv.h
diff options
context:
space:
mode:
authorMaíra Canal <mcanal@igalia.com>2026-06-04 17:32:16 -0300
committerMaíra Canal <mcanal@igalia.com>2026-06-09 14:43:43 -0300
commit57d78cbc16c930f698616d4db16aa85a49a356f7 (patch)
treebfcc62940e5adcb5fc31b25e8ecb97aacd9c3608 /drivers/gpu/drm/v3d/v3d_drv.h
parent25a1669907512e927fab9ad4d4fb74ff57f63cd9 (diff)
downloadlinux-next-57d78cbc16c930f698616d4db16aa85a49a356f7.tar.gz
linux-next-57d78cbc16c930f698616d4db16aa85a49a356f7.zip
drm/v3d: Extract v3d_job_add_syncobjs() helper
Move the syncobj dependency setup out of v3d_job_init() into its own v3d_job_add_syncobjs() helper and make the queue that the job was submitted a variable in struct v3d_job, so that v3d_job_add_syncobjs() can use it. No functional change. This prepares for the next commit which changes the error handling, and for a later consolidation that separates job allocation from syncobj attachment. Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Link: https://patch.msgid.link/20260604-v3d-sched-misc-fixes-v4-3-c068f5bf5ccf@igalia.com Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'drivers/gpu/drm/v3d/v3d_drv.h')
-rw-r--r--drivers/gpu/drm/v3d/v3d_drv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/v3d/v3d_drv.h b/drivers/gpu/drm/v3d/v3d_drv.h
index dfe41e7710d1..4131f1a5b113 100644
--- a/drivers/gpu/drm/v3d/v3d_drv.h
+++ b/drivers/gpu/drm/v3d/v3d_drv.h
@@ -295,6 +295,9 @@ struct v3d_job {
struct v3d_dev *v3d;
+ /* The queue that the job was submitted on. */
+ enum v3d_queue queue;
+
/* This is the array of BOs that were looked up at the start
* of submission.
*/