search for: drm_gem_fb_create_with_func

Displaying 10 results from an estimated 10 matches for "drm_gem_fb_create_with_func".

2019 Apr 03
2
[PATCH] drm/cirrus: rewrite and modernize driver.
> > +struct cirrus_device { > > + struct drm_device *dev; > > Why not embed drm_device? It's the latest rage :-) Sure, can do that. > > +void cirrus_pipe_update(struct drm_simple_display_pipe *pipe, > > + struct drm_plane_state *old_state) > > +{ > > + struct drm_plane_state *state =
2019 Apr 03
2
[PATCH] drm/cirrus: rewrite and modernize driver.
> > +struct cirrus_device { > > + struct drm_device *dev; > > Why not embed drm_device? It's the latest rage :-) Sure, can do that. > > +void cirrus_pipe_update(struct drm_simple_display_pipe *pipe, > > + struct drm_plane_state *old_state) > > +{ > > + struct drm_plane_state *state =
2019 Apr 03
0
[PATCH] drm/cirrus: rewrite and modernize driver.
...rty rect support in your >> main plane update function? > > Dirty rect support is already there, see above. > > So I can just remove cirrus_fb_dirty() and hook up > drm_atomic_helper_dirtyfb() instead. Easy ;) > You can even use drm_gem_fb_create_with_dirty() instead of drm_gem_fb_create_with_funcs(). Noralf. > cheers, > Gerd > > _______________________________________________ > dri-devel mailing list > dri-devel at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >
2019 Jul 03
11
[PATCH 0/5] Unmappable DRM client buffers for fbdev emulation
DRM client buffers are permanently mapped throughout their lifetime. This prevents us from using generic framebuffer emulation for devices with small dedicated video memory, such as ast or mgag200. With fb buffers permanently mapped, such devices often won't have enougth space left to display other content (e.g., X11). This patch set introduces unmappable DRM client buffers for framebuffer
2019 Jul 03
11
[PATCH 0/5] Unmappable DRM client buffers for fbdev emulation
DRM client buffers are permanently mapped throughout their lifetime. This prevents us from using generic framebuffer emulation for devices with small dedicated video memory, such as ast or mgag200. With fb buffers permanently mapped, such devices often won't have enougth space left to display other content (e.g., X11). This patch set introduces unmappable DRM client buffers for framebuffer
2019 Jul 03
0
[PATCH 5/5] drm/mgag200: Replace struct mga_fbdev with generic framebuffer emulation
...ncs = { + .destroy = drm_gem_fb_destroy, + .create_handle = drm_gem_fb_create_handle, + .dirty = mga_framebuffer_dirtyfb, +}; + +static struct drm_framebuffer * +mga_mode_config_funcs_fb_create(struct drm_device *dev, struct drm_file *file, + const struct drm_mode_fb_cmd2 *mode_cmd) +{ + return drm_gem_fb_create_with_funcs(dev, file, mode_cmd, + &mga_framebuffer_funcs); +} + static const struct drm_mode_config_funcs mga_mode_funcs = { - .fb_create = drm_gem_fb_create + .fb_create = mga_mode_config_funcs_fb_create }; static int mga_probe_vram(struct mga_device *mdev, void __iomem *mem) @@ -162,7 +187...
2019 Jul 03
0
[PATCH 3/5] drm/ast: Replace struct ast_fbdev with generic framebuffer emulation
...er_funcs = { + .destroy = drm_gem_fb_destroy, + .create_handle = drm_gem_fb_create_handle, + .dirty = ast_framebuffer_dirtyfb, +}; + +static struct drm_framebuffer * +ast_mode_config_fb_create(struct drm_device *dev, struct drm_file *file, + const struct drm_mode_fb_cmd2 *mode_cmd) +{ + return drm_gem_fb_create_with_funcs(dev, file, mode_cmd, + &ast_framebuffer_funcs); +} + static const struct drm_mode_config_funcs ast_mode_funcs = { - .fb_create = drm_gem_fb_create + .fb_create = ast_mode_config_fb_create }; static u32 ast_get_vram_info(struct drm_device *dev) @@ -502,7 +527,7 @@ int ast_driver_lo...
2019 Apr 03
0
[PATCH] drm/cirrus: rewrite and modernize driver.
...ct drm_mode_fb_cmd2 *mode_cmd) > +{ > + if (mode_cmd->pixel_format != DRM_FORMAT_RGB565) > + return ERR_PTR(-EINVAL); > + if (cirrus_check_size(mode_cmd->width, mode_cmd->height) < 0) > + return ERR_PTR(-EINVAL); > + return drm_gem_fb_create_with_funcs(dev, file_priv, mode_cmd, > + &cirrus_fb_funcs); > +} > + > +static const struct drm_mode_config_funcs cirrus_mode_config_funcs = { > + .fb_create = cirrus_fb_create, > + .atomic_check = drm_atomic_helper_check, > +...
2019 Apr 03
5
[PATCH] drm/cirrus: rewrite and modernize driver.
..._create(struct drm_device *dev, struct drm_file *file_priv, + const struct drm_mode_fb_cmd2 *mode_cmd) +{ + if (mode_cmd->pixel_format != DRM_FORMAT_RGB565) + return ERR_PTR(-EINVAL); + if (cirrus_check_size(mode_cmd->width, mode_cmd->height) < 0) + return ERR_PTR(-EINVAL); + return drm_gem_fb_create_with_funcs(dev, file_priv, mode_cmd, + &cirrus_fb_funcs); +} + +static const struct drm_mode_config_funcs cirrus_mode_config_funcs = { + .fb_create = cirrus_fb_create, + .atomic_check = drm_atomic_helper_check, + .atomic_commit = drm_atomic_helper_commit, +}; + +static void cirrus_mode_config_ini...
2019 Apr 03
5
[PATCH] drm/cirrus: rewrite and modernize driver.
..._create(struct drm_device *dev, struct drm_file *file_priv, + const struct drm_mode_fb_cmd2 *mode_cmd) +{ + if (mode_cmd->pixel_format != DRM_FORMAT_RGB565) + return ERR_PTR(-EINVAL); + if (cirrus_check_size(mode_cmd->width, mode_cmd->height) < 0) + return ERR_PTR(-EINVAL); + return drm_gem_fb_create_with_funcs(dev, file_priv, mode_cmd, + &cirrus_fb_funcs); +} + +static const struct drm_mode_config_funcs cirrus_mode_config_funcs = { + .fb_create = cirrus_fb_create, + .atomic_check = drm_atomic_helper_check, + .atomic_commit = drm_atomic_helper_commit, +}; + +static void cirrus_mode_config_ini...