mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
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:
parent
468a755f20
commit
4a197e4722
|
|
@ -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__ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user