drm/plane: drop num_overlay_planes (v2)
Subsystems (2)
Dave Airlie
maintainerPATCH 1/1 drm/plane: drop num_overlay_planes (v2)
From: Dave Airlie <[email protected]>
In order to implement plane leasing we need to count things, just make the code consistent with the counting code currently used for counting crtcs/encoders/connectors and drop the need for num_overlay_planes.
v2: don't forget to assign plane_ptr. (keithp)
Signed-off-by Dave Airlie <[email protected]>
--- drivers/gpu/drm/drm_mode_config.c | 1 - drivers/gpu/drm/drm_plane.c | 46 ++++++++++++++------------------------- include/drm/drm_mode_config.h | 13 ----------- 3 files changed, 16 insertions(+), 44 deletions(-)
drivers/gpu/drm/drm_mode_config.c +0 -1
@@ -391,7 +391,6 @@ void drm_mode_config_init(struct drm_device *dev) dev->mode_config.num_connector =0 ; dev->mode_config.num_crtc =0 ; dev->mode_config.num_encoder =0 ; - dev->mode_config.num_overlay_plane =0 ; dev->mode_config.num_total_plane =0 ; }EXPORT_SYMBOL (drm_mode_config_init);
drivers/gpu/drm/drm_plane.c +16 -30
75 lines not on this page · raw message
include/drm/drm_mode_config.h +0 -13
@@ -429,19 +429,6 @@ struct drm_mode_config {*/ struct list_head encoder_list; -/** -* @num_overlay_plane: -* -* Number of overlay planes on this device, excluding primary and cursor -* planes. -* -* Track number of overlay planes separately from number of total -* planes. By default we only advertise overlay planes to userspace; if -* userspace sets the "universal plane" capability bit, we'll go ahead -* and expose all planes. This is invariant over the lifetime of a -* device and hence doesn't need any locks. -*/ -int num_overlay_plane;/** * @num_total_plane: *
Signature · 6 lines
2.14.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx