mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
drm/xe/display: Expose plane max width/height helpers to global scope
Enabling features like FBC on platforms may depend on a plane's maximum supported resolutions or some other arbitrary constant values because of hw restrictions. Currently the helpers that report a plane's max width and height are private to skl_plane / skl_universal_plane. Change the scope to golbal so that this can be queried from other areas as well. v2: function parameter alignment fixes Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patch.msgid.link/20260722132448.318112-1-vinod.govindapillai@intel.com
This commit is contained in:
parent
71b57dd92f
commit
6a86e215ba
|
|
@ -1932,10 +1932,10 @@ static int intel_plane_min_height(struct intel_plane *plane,
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int intel_plane_max_width(struct intel_plane *plane,
|
||||
const struct drm_framebuffer *fb,
|
||||
int color_plane,
|
||||
unsigned int rotation)
|
||||
int intel_plane_max_width(struct intel_plane *plane,
|
||||
const struct drm_framebuffer *fb,
|
||||
int color_plane,
|
||||
unsigned int rotation)
|
||||
{
|
||||
if (plane->max_width)
|
||||
return plane->max_width(fb, color_plane, rotation);
|
||||
|
|
@ -1943,10 +1943,10 @@ static int intel_plane_max_width(struct intel_plane *plane,
|
|||
return INT_MAX;
|
||||
}
|
||||
|
||||
static int intel_plane_max_height(struct intel_plane *plane,
|
||||
const struct drm_framebuffer *fb,
|
||||
int color_plane,
|
||||
unsigned int rotation)
|
||||
int intel_plane_max_height(struct intel_plane *plane,
|
||||
const struct drm_framebuffer *fb,
|
||||
int color_plane,
|
||||
unsigned int rotation)
|
||||
{
|
||||
if (plane->max_height)
|
||||
return plane->max_height(fb, color_plane, rotation);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct drm_framebuffer;
|
||||
struct intel_crtc;
|
||||
struct intel_display;
|
||||
struct intel_initial_plane_config;
|
||||
|
|
@ -42,5 +43,13 @@ bool icl_is_hdr_plane(struct intel_display *display, enum plane_id plane_id);
|
|||
|
||||
u32 skl_plane_aux_dist(const struct intel_plane_state *plane_state,
|
||||
int color_plane);
|
||||
int intel_plane_max_width(struct intel_plane *plane,
|
||||
const struct drm_framebuffer *fb,
|
||||
int color_plane,
|
||||
unsigned int rotation);
|
||||
int intel_plane_max_height(struct intel_plane *plane,
|
||||
const struct drm_framebuffer *fb,
|
||||
int color_plane,
|
||||
unsigned int rotation);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user