diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-07-08 20:20:51 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2022-07-09 15:07:09 +0200 |
commit | ba71593217b5b03c9e3385b268ff8613a71fc6ce (patch) | |
tree | 5bdab1b2711c00662c6ee1a8df46ecd86d281ccd /drivers/gpu/drm/drm_gem_framebuffer_helper.c | |
parent | e5bd7e3e4a68f0befe53f59954b25eec9a792d60 (diff) |
drm/fb-helper: Add support for DRM_FORMAT_C[124]
Add support for color-indexed frame buffer formats with two, four, and
sixteen colors to the DRM framebuffer helper functions:
1. Add support for 1, 2, and 4 bits per pixel to the damage helper,
2. For color-indexed modes, the length of the color bitfields must be
set to the color depth, else the logo code may pick a logo with too
many colors. Drop the incorrect DAC width comment, which
originates from the i915 driver.
3. Accept C[124] modes when validating or filling in struct
fb_var_screeninfo, and use the correct number of bits per pixel.
4. Set the visual to FB_VISUAL_PSEUDOCOLOR for all color-indexed
modes.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/db3e80b445df661ff0cd7e698507a8d24a4c867e.1657294931.git.geert@linux-m68k.org
Diffstat (limited to 'drivers/gpu/drm/drm_gem_framebuffer_helper.c')
0 files changed, 0 insertions, 0 deletions