]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/overlay: Introduce i915_overlay_obj_lookup()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Feb 2026 10:07:25 +0000 (12:07 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Feb 2026 08:41:34 +0000 (10:41 +0200)
commit24d87ce98e54feae55259bb93a436f872f6cc574
tree706e26bbdb726f8197075a8df2a9eacbf1c43b1e
parent6daf9a495c47337b366ad6d8a096a35d38a388e8
drm/i915/overlay: Introduce i915_overlay_obj_lookup()

Extract the BO lookup and tiling check into a new
helper called i915_overlay_obj_lookup(). This will have to
move to the i915 side of the parent vs. display driver split.

There is a slight change here in that we now do the tiling
check before taking the modeset locks, but those locks don't
protect the BO tiling stuff in any way, so nothing is really
different here.

Note that the hardware should support X-tiled scanout also
for the overlay, but I guess no one ever bothered to hook
it up and test it. So the check should stay at least for now.

v2: Correctly handle the ERR_PTR returned by
    i915_overlay_obj_lookup() (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260226100738.29997-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_overlay.c