drm/intel: add intel_gtt_view_is_partial() for completeness

There's a helper for all other view types, add one for
intel_gtt_view_is_partial() too.

Reviewed-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/be522421df45be071ec8f298f4d5b7a49fa6bab8.1790780340.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula 2026-09-30 18:00:00 +03:00
parent 468a755f20
commit 4a197e4722

View File

@ -71,4 +71,9 @@ static inline bool intel_gtt_view_is_rotated(const struct intel_gtt_view *view)
return view->type == I915_GTT_VIEW_ROTATED;
}
static inline bool intel_gtt_view_is_partial(const struct intel_gtt_view *view)
{
return view->type == I915_GTT_VIEW_PARTIAL;
}
#endif /* __DRM_INTEL_GTT_VIEW_TYPES_H__ */