Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1669934
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 2/3] drm/fb-cma-helper: expose more of fb cma guts |
| Date | 2017-06-19 22:50 +0200 |
| Message-ID | <tUbMu-7Ag-11@gated-at.bofh.it> (permalink) |
| References | <tTZBE-89S-13@gated-at.bofh.it> <tUbMu-7Ag-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Le Mon, 19 Jun 2017 09:44:25 +0200, Peter Rosin <peda@axentia.se> a écrit : > DRM drivers supporting clut may want a convenient way to only use > non-default .gamma_set and .gamma_get ops in the drm_fb_helper_funcs > in order to avoid the following > > /* > * The driver really shouldn't advertise pseudo/directcolor > * visuals if it can't deal with the palette. > */ > if (WARN_ON(!fb_helper->funcs->gamma_set || > !fb_helper->funcs->gamma_get)) > return -EINVAL; > > warning in drm_fb_helper.c:setcolreg(). Did you read the FIXME in the struct doc [1]? Shouldn't we try to move to this generic approach instead of exposing fb_cma internals? You could probably mimic (or re-use) what's done in drm_mode_gamma_set/get_ioctl() [2]. [1]http://elixir.free-electrons.com/linux/v4.12-rc6/source/include/drm/drm_fb_helper.h#L110 [2]http://elixir.free-electrons.com/linux/v4.12-rc6/source/drivers/gpu/drm/drm_color_mgmt.c#L214
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v3 2/3] drm/fb-cma-helper: expose more of fb cma guts Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-06-19 22:50 +0200
csiph-web