Skip to content
Unverified Commit 1a7998da authored by Dave Stevenson's avatar Dave Stevenson Committed by Maxime Ripard
Browse files

drm/object: Add default zpos value at reset



The drm_plane_create_zpos_property() function asks for an initial value,
and will set the associated plane state variable with that value if a
state is present.

However, that function is usually called at a time where there's no
state yet. Since the drm_plane_state reset helper doesn't take care of
reading that value when it's called, it means that in most cases the
initial value will be 0, or the drivers will have to work around it.

Let's add some code in __drm_atomic_helper_plane_state_reset() to get
the initial zpos value if the property has been attached in order to fix
this.

Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221095918.18763-8-maxime@cerno.tech
parent adf47b75
  • mirror @mirror

    mentioned in commit 8620e430a767436ad1417c483289d33fc591a16f

    ·

    mentioned in commit 8620e430a767436ad1417c483289d33fc591a16f

    Toggle commit list
  • mirror @mirror

    mentioned in commit c482ce5a75177a95785ad41deac85c2a079ae388

    ·

    mentioned in commit c482ce5a75177a95785ad41deac85c2a079ae388

    Toggle commit list
  • mirror @mirror

    mentioned in commit cb9405d5

    ·

    mentioned in commit cb9405d5

    Toggle commit list
  • mirror @mirror

    mentioned in commit d6ead6391b2bf082ace19ee04823efde6c90b92b

    ·

    mentioned in commit d6ead6391b2bf082ace19ee04823efde6c90b92b

    Toggle commit list
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment