search for: drm_plane_type_cursor

Displaying 16 results from an estimated 16 matches for "drm_plane_type_cursor".

2016 May 31
0
[PATCH 3/5] virtio-gpu: switch to atomic cursor interfaces
...virtio_gpu_plane_init(vgdev, index); - if (IS_ERR(plane)) - return PTR_ERR(plane); - drm_crtc_init_with_planes(dev, crtc, plane, NULL, + primary = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_PRIMARY, index); + if (IS_ERR(primary)) + return PTR_ERR(primary); + cursor = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_CURSOR, index); + if (IS_ERR(cursor)) + return PTR_ERR(cursor); + drm_crtc_init_with_planes(dev, crtc, primary, cursor, &virtio_gpu_crtc_funcs, NULL); drm_crtc_helper_add(crtc, &virtio_gpu_crtc_helper_funcs); - plane->crtc = crtc; + primary->crtc = crtc; + cursor->crtc = crtc;...
2016 May 31
0
[PATCH 3/5] virtio-gpu: switch to atomic cursor interfaces
...virtio_gpu_plane_init(vgdev, index); - if (IS_ERR(plane)) - return PTR_ERR(plane); - drm_crtc_init_with_planes(dev, crtc, plane, NULL, + primary = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_PRIMARY, index); + if (IS_ERR(primary)) + return PTR_ERR(primary); + cursor = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_CURSOR, index); + if (IS_ERR(cursor)) + return PTR_ERR(cursor); + drm_crtc_init_with_planes(dev, crtc, primary, cursor, &virtio_gpu_crtc_funcs, NULL); drm_crtc_helper_add(crtc, &virtio_gpu_crtc_helper_funcs); - plane->crtc = crtc; + primary->crtc = crtc; + cursor->crtc = crtc;...
2016 May 27
2
[PATCH] Add virtio gpu driver.
...; > - if (IS_ERR(plane)) > - return PTR_ERR(plane); > - drm_crtc_init_with_planes(dev, crtc, plane, NULL, > + primary = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_PRIMARY, index); > + if (IS_ERR(primary)) > + return PTR_ERR(primary); > + cursor = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_CURSOR, index); > + if (IS_ERR(cursor)) > + return PTR_ERR(cursor); > + drm_crtc_init_with_planes(dev, crtc, primary, cursor, > &virtio_gpu_crtc_funcs, NULL); > drm_mode_crtc_set_gamma_size(crtc, 256); > drm_crtc_helper_add(crtc, &virtio_gpu_crtc_helper_funcs); > -...
2016 May 27
2
[PATCH] Add virtio gpu driver.
...; > - if (IS_ERR(plane)) > - return PTR_ERR(plane); > - drm_crtc_init_with_planes(dev, crtc, plane, NULL, > + primary = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_PRIMARY, index); > + if (IS_ERR(primary)) > + return PTR_ERR(primary); > + cursor = virtio_gpu_plane_init(vgdev, DRM_PLANE_TYPE_CURSOR, index); > + if (IS_ERR(cursor)) > + return PTR_ERR(cursor); > + drm_crtc_init_with_planes(dev, crtc, primary, cursor, > &virtio_gpu_crtc_funcs, NULL); > drm_mode_crtc_set_gamma_size(crtc, 256); > drm_crtc_helper_add(crtc, &virtio_gpu_crtc_helper_funcs); > -...
2016 May 25
3
[PATCH] Add virtio gpu driver.
On Mon, Mar 30, 2015 at 4:49 PM, Daniel Vetter <daniel at ffwll.ch> wrote: > On Mon, Mar 30, 2015 at 02:23:47PM +0200, Gerd Hoffmann wrote: >> > > Signed-off-by: Dave Airlie <airlied at redhat.com> >> > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> >> > >> > Standard request from my side for new drm drivers (especially if
2016 May 25
3
[PATCH] Add virtio gpu driver.
On Mon, Mar 30, 2015 at 4:49 PM, Daniel Vetter <daniel at ffwll.ch> wrote: > On Mon, Mar 30, 2015 at 02:23:47PM +0200, Gerd Hoffmann wrote: >> > > Signed-off-by: Dave Airlie <airlied at redhat.com> >> > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> >> > >> > Standard request from my side for new drm drivers (especially if
2019 May 27
0
[PATCH] drm/virtio: add plane check
...virtgpu_plane.c +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c @@ -82,7 +82,22 @@ static const struct drm_plane_funcs virtio_gpu_plane_funcs = { static int virtio_gpu_plane_atomic_check(struct drm_plane *plane, struct drm_plane_state *state) { - return 0; + bool is_cursor = plane->type == DRM_PLANE_TYPE_CURSOR; + struct drm_crtc_state *crtc_state; + int ret; + + if (!state->fb | !state->crtc) + return 0; + + crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc); + if (IS_ERR(crtc_state)) + return PTR_ERR(crtc_state); + + ret = drm_atomic_helper_check_plane_state(st...
2020 Nov 06
4
[PATCH 0/3] drm/nouveau: extend the lifetime of nouveau_drm
Hi folks, Currently, when the device is removed (or the driver is unbound) the nouveau_drm structure de-allocated. However, it's still accessible from and used by some DRM layer callbacks. For example, file handles can be closed after the device has been removed (physically or otherwise). This series converts the Nouveau device structure to be allocated and de-allocated with the
2017 May 18
5
[PATCH v3] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
..._MODE_REFLECT_X | + DRM_MODE_REFLECT_Y); - if (rotation & DRM_REFLECT_X) + if (rotation & DRM_MODE_REFLECT_X) caps |= MDP_PIPE_CAP_HFLIP; - if (rotation & DRM_REFLECT_Y) + if (rotation & DRM_MODE_REFLECT_Y) caps |= MDP_PIPE_CAP_VFLIP; if (plane->type == DRM_PLANE_TYPE_CURSOR) @@ -970,11 +970,11 @@ static int mdp5_plane_mode_set(struct drm_plane *plane, DBG("scale config = %x", config); rotation = drm_rotation_simplify(pstate->rotation, - DRM_ROTATE_0 | - DRM_REFLECT_X | - DRM_REFLECT_Y); - hflip = !!(rotation & DRM_REFLECT_X); - vf...
2017 May 19
4
[PATCH v4 1/2] drm/blend: Fix comment typ-o
Fix DRM_REFELCT_Y -> DRM_REFLECT_Y. Signed-off-by: Robert Foss <robert.foss at collabora.com> --- drivers/gpu/drm/drm_blend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c index a0d0d6843288..dee67ef6c670 100644 --- a/drivers/gpu/drm/drm_blend.c +++ b/drivers/gpu/drm/drm_blend.c @@ -129,7 +129,7 @@ *
2017 May 19
2
[PATCH v4 2/2] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
..._MODE_REFLECT_X | + DRM_MODE_REFLECT_Y); - if (rotation & DRM_REFLECT_X) + if (rotation & DRM_MODE_REFLECT_X) caps |= MDP_PIPE_CAP_HFLIP; - if (rotation & DRM_REFLECT_Y) + if (rotation & DRM_MODE_REFLECT_Y) caps |= MDP_PIPE_CAP_VFLIP; if (plane->type == DRM_PLANE_TYPE_CURSOR) @@ -970,11 +970,11 @@ static int mdp5_plane_mode_set(struct drm_plane *plane, DBG("scale config = %x", config); rotation = drm_rotation_simplify(pstate->rotation, - DRM_ROTATE_0 | - DRM_REFLECT_X | - DRM_REFLECT_Y); - hflip = !!(rotation & DRM_REFLECT_X); - vf...
2017 May 18
0
[PATCH v3] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...; > - if (rotation & DRM_REFLECT_X) > + if (rotation & DRM_MODE_REFLECT_X) > caps |= MDP_PIPE_CAP_HFLIP; > > - if (rotation & DRM_REFLECT_Y) > + if (rotation & DRM_MODE_REFLECT_Y) > caps |= MDP_PIPE_CAP_VFLIP; > > if (plane->type == DRM_PLANE_TYPE_CURSOR) > @@ -970,11 +970,11 @@ static int mdp5_plane_mode_set(struct drm_plane *plane, > DBG("scale config = %x", config); > > rotation = drm_rotation_simplify(pstate->rotation, > - DRM_ROTATE_0 | > - DRM_REFLECT_X | > - DRM_REFLECT_Y); > - hflip...
2017 May 22
0
[PATCH v4 2/2] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...; > - if (rotation & DRM_REFLECT_X) > + if (rotation & DRM_MODE_REFLECT_X) > caps |= MDP_PIPE_CAP_HFLIP; > > - if (rotation & DRM_REFLECT_Y) > + if (rotation & DRM_MODE_REFLECT_Y) > caps |= MDP_PIPE_CAP_VFLIP; > > if (plane->type == DRM_PLANE_TYPE_CURSOR) > @@ -970,11 +970,11 @@ static int mdp5_plane_mode_set(struct drm_plane *plane, > DBG("scale config = %x", config); > > rotation = drm_rotation_simplify(pstate->rotation, > - DRM_ROTATE_0 | > - DRM_REFLECT_X | > - DRM_REFLECT_Y); > - hflip...
2017 May 22
0
[PATCH v4 2/2] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...; > - if (rotation & DRM_REFLECT_X) > + if (rotation & DRM_MODE_REFLECT_X) > caps |= MDP_PIPE_CAP_HFLIP; > > - if (rotation & DRM_REFLECT_Y) > + if (rotation & DRM_MODE_REFLECT_Y) > caps |= MDP_PIPE_CAP_VFLIP; > > if (plane->type == DRM_PLANE_TYPE_CURSOR) > @@ -970,11 +970,11 @@ static int mdp5_plane_mode_set(struct drm_plane *plane, > DBG("scale config = %x", config); > > rotation = drm_rotation_simplify(pstate->rotation, > - DRM_ROTATE_0 | > - DRM_REFLECT_X | > - DRM_REFLECT_Y); > - hflip...
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without further functionality. It only provides the destroy callback to cleanup the encoder's state. Only few drivers implement more sophisticated encoders than that. Most drivers implement such a simple encoder and can use drm_simple_encoder_init() instead. The patchset converts drivers where the encoder's instance is embedded in
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without further functionality. It only provides the destroy callback to cleanup the encoder's state. Only few drivers implement more sophisticated encoders than that. Most drivers implement such a simple encoder and can use drm_simple_encoder_init() instead. The patchset converts drivers where the encoder's instance is embedded in