diff --git a/include/drm/intel/gtt_view_types.h b/include/drm/intel/gtt_view_types.h index 3ad2a1026db1..d77292897d64 100644 --- a/include/drm/intel/gtt_view_types.h +++ b/include/drm/intel/gtt_view_types.h @@ -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__ */