drm/i915/gem: Add a separate validate_priority helper
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 8 Jul 2021 15:48:19 +0000 (10:48 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Jul 2021 17:46:40 +0000 (19:46 +0200)
commitaaa5957c97592baa62ae5ce8079b18f94b1241f8
treed8e497cd48ed3d35d8d56a367788950be2977a2f
parenta4839cb1137b0df1303072473e8fd1b32daaeb13
drm/i915/gem: Add a separate validate_priority helper

With the proto-context stuff added later in this series, we end up
having to duplicate set_priority.  This lets us avoid duplicating the
validation logic.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210708154835.528166-15-jason@jlekstrand.net
drivers/gpu/drm/i915/gem/i915_gem_context.c