search for: vc4_pstate

Displaying 12 results from an estimated 12 matches for "vc4_pstate".

2018 May 11
2
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...gpu/drm/vc4/vc4_plane.c > +++ b/drivers/gpu/drm/vc4/vc4_plane.c > @@ -258,6 +258,49 @@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane) > } > } > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > +{ > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > + struct drm_connector_state *conn_state = NULL; > + struct drm_connector *conn; > + struct drm_crtc_state *crtc_state; > + int i; > + > + for_each_new_connector_in_state(pstate->state, conn, conn_state, i) { > + if (conn_state->crtc == ps...
2018 Nov 22
0
[PATCH v3 2/3] drm/vc4: Take underscan setup into account when updating planes
...0a6d..78705d9ae25d 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -258,6 +258,52 @@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane) } } +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) +{ + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); + unsigned int vborder, hborder, adjhdisplay, adjvdisplay; + struct drm_crtc_state *crtc_state; + + crtc_state = drm_atomic_get_new_crtc_state(pstate->state, + pstate->crtc); + + vc4_crtc_get_underscan_borders(crtc_state, &vborder, &hborder); + if...
2018 May 11
2
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...; > > @@ -258,6 +258,49 @@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane) > > > } > > > } > > > > > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > > > +{ > > > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > > > + struct drm_connector_state *conn_state = NULL; > > > + struct drm_connector *conn; > > > + struct drm_crtc_state *crtc_state; > > > + int i; > > > + > > > + for_each_new_connector_in_state(pstate->state,...
2018 May 11
0
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...7d35..61ed60841cd6 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -258,6 +258,49 @@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane) } } +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) +{ + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); + struct drm_connector_state *conn_state = NULL; + struct drm_connector *conn; + struct drm_crtc_state *crtc_state; + int i; + + for_each_new_connector_in_state(pstate->state, conn, conn_state, i) { + if (conn_state->crtc == pstate->crtc) + break; + } + + i...
2018 May 11
0
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...drivers/gpu/drm/vc4/vc4_plane.c > > @@ -258,6 +258,49 @@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane) > > } > > } > > > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > > +{ > > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > > + struct drm_connector_state *conn_state = NULL; > > + struct drm_connector *conn; > > + struct drm_crtc_state *crtc_state; > > + int i; > > + > > + for_each_new_connector_in_state(pstate->state, conn, conn_state, i) { > &g...
2018 May 11
3
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...d(struct drm_plane_state *state, int plane) > > > > > } > > > > > } > > > > > > > > > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > > > > > +{ > > > > > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > > > > > + struct drm_connector_state *conn_state = NULL; > > > > > + struct drm_connector *conn; > > > > > + struct drm_crtc_state *crtc_state; > > > > > + int i; > > > > > + > > > &g...
2018 May 11
1
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...gt; > > > } > > > > > > > } > > > > > > > > > > > > > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > > > > > > > +{ > > > > > > > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > > > > > > > + struct drm_connector_state *conn_state = NULL; > > > > > > > + struct drm_connector *conn; > > > > > > > + struct drm_crtc_state *crtc_state; > > > > > > > + int i; >...
2018 May 11
0
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...@@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane) > > > > } > > > > } > > > > > > > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > > > > +{ > > > > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > > > > + struct drm_connector_state *conn_state = NULL; > > > > + struct drm_connector *conn; > > > > + struct drm_crtc_state *crtc_state; > > > > + int i; > > > > + > > > > + for_each_new_connect...
2018 May 11
5
[PATCH v2 0/4] drm/connector: Provide generic support for underscan
Hello, This is an attempt at providing generic support for underscan connector props. We already have 3 drivers defining the same underscan, underscan vborder and underscan hborder properties (amd, radeon and nouveau) and I am about to add a new one, hence my proposal to put the prop parsing code in the core and add ->underscan fields to drm_connector_state. In this v2, I also converted the
2018 May 11
0
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...e, int plane) > > > > > > } > > > > > > } > > > > > > > > > > > > +static int vc4_plane_underscan_adj(struct drm_plane_state *pstate) > > > > > > +{ > > > > > > + struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); > > > > > > + struct drm_connector_state *conn_state = NULL; > > > > > > + struct drm_connector *conn; > > > > > > + struct drm_crtc_state *crtc_state; > > > > > > + int i; > > > > >...
2018 Nov 22
5
[PATCH v3 0/3] drm/connector: Provide generic support for underscan
Hello, This is an attempt at providing generic support for underscan connector props. We already have 3 drivers defining the same underscan, underscan vborder and underscan hborder properties (amd, radeon and nouveau) and I am about to add a new one, hence my proposal to put the prop parsing code in the core and add ->underscan fields to drm_connector_state. This v3 was based on the "VC4
2018 May 07
8
[PATCH 0/3] drm/connector: Provide generic support for underscan
Hello, This is an attempt at providing generic support for underscan connector props. We already have 3 drivers defining the same underscan, underscan vborder and underscan hborder properties (amd, radeon and nouveau) and I am about to add a new one, hence my proposal to put the prop parsing code in the core and add ->underscan fields to drm_connector_state. Note that I use this new