linux-stable/drivers/gpu/drm
Thomas Zimmermann 10cd592e63 drm/format-helper: Add conversion from XRGB8888 to 15-bit RGB555 formats
Add conversion from XRGB8888 to XRGB1555, ARGB1555 and RGBA5551, which
are the formats currently supported by the simplefb infrastructure. The
new helpers allow the output of XRGB8888 framebuffers to firmware
scanout buffers in one of the 15-bit formats.

v3:
	* use __le* for destination buffers (Jose, kernel test robot)
v2:
	* test 15-bit results with local endianness (Jose)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230102112927.26565-10-tzimmermann@suse.de
2023-01-03 14:26:05 +01:00
..
amd drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
arm drm/arm/malidp: remove calls to drm_mode_config_cleanup() 2022-11-16 10:33:45 +00:00
armada drm/fb-helper: Perform all fbdev I/O with the same implementation 2022-11-05 17:05:54 +01:00
aspeed drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
ast drm/ast: Init iosys_map pointer as I/O memory for damage handling 2022-12-20 17:15:06 +01:00
atmel-hlcdc drm: atmel-hlcdc: Remove #ifdef guards for PM related functions 2022-12-12 12:30:56 +00:00
bridge drm/bridge: panel: Set pre_enable_prev_first from drmm_panel_bridge_add 2023-01-02 11:38:43 +01:00
display drm/display/dp_mst: Fix payload addition on a disconnected sink 2022-12-16 16:55:29 +02:00
etnaviv Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux into drm-next 2022-11-22 12:30:01 +10:00
exynos drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
fsl-dcu drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
gma500 drm/fb-helper: Perform all fbdev I/O with the same implementation 2022-11-05 17:05:54 +01:00
gud drm/gud: Fix missing include 2022-12-08 12:32:25 +01:00
hisilicon drm/hisilicon/hibmc: Fix preferred depth and bpp 2022-11-24 14:07:52 +01:00
hyperv drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
i2c drm/connector: Rename drm_mode_create_tv_properties 2022-11-24 12:42:39 +01:00
i810
i915 drm/i915: stop using ttm_bo_wait 2022-12-13 09:46:02 +01:00
imx drm/imx: move IPUv3 driver into separate subdirectory 2022-12-16 18:40:29 +01:00
ingenic drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
kmb drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
lib
lima Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
logicvc drm/logicvc: Fix preferred fbdev cpp 2022-11-24 14:07:52 +01:00
mcde drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
mediatek drm/mediatek: dp: Replace usage of drm_bridge_chain_ functions 2022-12-08 09:56:56 +01:00
meson drm/meson: dw-hdmi: Use devm_regulator_*get_enable*() 2022-12-01 09:38:48 +01:00
mga
mgag200 drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
msm Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
mxsfb drm: mxsfb: DRM_MXSFB should depend on ARCH_MXS || ARCH_MXC 2022-11-25 22:47:34 +01:00
nouveau drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
omapdrm drm/omap: dsi: Fix excessive stack usage 2022-12-16 19:24:39 +02:00
panel drm/panel: add the orisetech ota5601a 2022-12-29 22:05:03 +01:00
panfrost drm: panfrost: Remove #ifdef guards for PM related functions 2022-12-12 13:07:01 +00:00
pl111 drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
qxl drm/qxl: stop using ttm_bo_wait 2022-12-19 09:50:06 +01:00
r128
radeon drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
rcar-du drm: rcar-du: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
rockchip Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
savage
scheduler Merge drm/drm-next into drm-misc-next 2022-11-24 09:28:05 +01:00
shmobile drm: shmobile: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
sis
solomon drm/solomon: Set preferred color depth and bpp to the correct values 2022-11-24 14:07:52 +01:00
sprd drm/sprd: remove redundant error logging 2022-12-20 09:26:18 +01:00
sti drm/sti: Use drm_mode_copy() 2022-11-12 01:41:35 +02:00
stm drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
sun4i drm/sun4i: tv: Convert to the new TV mode property 2022-11-24 12:42:41 +01:00
tdfx
tegra Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
tests drm/format-helper: Add conversion from XRGB8888 to 15-bit RGB555 formats 2023-01-03 14:26:05 +01:00
tidss drm: tidss: Fix pixel format definition 2022-12-16 19:24:39 +02:00
tilcdc drm: tilcdc: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
tiny drm/tiny: ili9486: Do not assume 8-bit only SPI controllers 2023-01-02 11:02:08 +01:00
ttm drm/ttm: use ttm_bo_wait_ctx instead of ttm_bo_wait 2022-12-06 13:02:20 +01:00
tve200 drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
udl drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
v3d drm/v3d: use new debugfs device-centered functions 2022-12-22 14:59:23 -03:00
vboxvideo drm: vboxvideo: Remove #ifdef guards for PM related functions 2022-12-12 13:07:03 +00:00
vc4 drm/vc4: drop all currently held locks if deadlock happens 2023-01-02 11:38:28 +01:00
vgem
via
virtio drm/virtio: Spiff out cmd queue/response traces 2023-01-02 17:51:27 +03:00
vkms drm/vkms: use new debugfs device-centered functions 2022-12-22 14:59:50 -03:00
vmwgfx drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
xen drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
xlnx drm-misc-next for 6.2: 2022-11-16 07:17:32 +10:00
drm_agpsupport.c
drm_aperture.c
drm_atomic.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_atomic_helper.c drm/atomic-helper: Add {begin,end}_fb_access to plane helpers 2022-11-08 17:10:27 +01:00
drm_atomic_state_helper.c drm/atomic-helper: Add an analog TV atomic_check implementation 2022-11-24 12:42:40 +01:00
drm_atomic_uapi.c drm/connector: Add TV standard property 2022-11-24 12:42:39 +01:00
drm_auth.c
drm_blend.c
drm_bridge.c drm/bridge: Document the expected behaviour of DSI host controllers 2022-12-08 09:56:57 +01:00
drm_bridge_connector.c
drm_buddy.c
drm_bufs.c
drm_cache.c
drm_client.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_client_modeset.c drm/client: Remove match on mode name 2022-11-24 12:42:40 +01:00
drm_color_mgmt.c
drm_connector.c drm/connector: Add a function to lookup a TV mode by its name 2022-11-24 12:42:39 +01:00
drm_context.c
drm_crtc.c
drm_crtc_helper.c drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
drm_crtc_helper_internal.h
drm_crtc_internal.h drm/edid: move edid load declarations to internal header 2022-10-26 09:53:56 +03:00
drm_damage_helper.c
drm_debugfs.c drm/debugfs: create debugfs late register functions 2022-12-22 14:58:55 -03:00
drm_debugfs_crc.c
drm_displayid.c
drm_dma.c
drm_drv.c drm/debugfs: create device-centered debugfs functions 2022-12-22 14:56:28 -03:00
drm_dumb_buffers.c
drm_edid.c drm-misc-next for 6.2: 2022-11-22 09:21:17 +10:00
drm_edid_load.c drm/edid/firmware: stop using a throwaway platform device 2022-11-16 14:54:44 +02:00
drm_encoder.c
drm_encoder_slave.c
drm_fb_dma_helper.c
drm_fb_helper.c Revert "drm/fb-helper: Perform damage handling in deferred-I/O helper" 2022-11-20 11:23:26 +01:00
drm_fbdev_generic.c drm/fb-helper: Don't use the preferred depth for the BPP default 2022-11-24 14:07:52 +01:00
drm_file.c
drm_flip_work.c
drm_format_helper.c drm/format-helper: Add conversion from XRGB8888 to 15-bit RGB555 formats 2023-01-03 14:26:05 +01:00
drm_fourcc.c drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats 2022-11-23 20:34:46 +01:00
drm_framebuffer.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_gem.c drm/gem-shmem: When drm_gem_object_init failed, should release object 2022-11-21 16:55:52 +01:00
drm_gem_atomic_helper.c drm/simple-kms: Remove drm_gem_simple_display_pipe_prepare_fb() 2022-12-05 13:35:37 +01:00
drm_gem_dma_helper.c drm/gem: Take reservation lock for vmap/vunmap operations 2022-10-18 01:21:38 +03:00
drm_gem_framebuffer_helper.c drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
drm_gem_shmem_helper.c drm/gem-shmem: When drm_gem_object_init failed, should release object 2022-11-21 16:55:52 +01:00
drm_gem_ttm_helper.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
drm_gem_vram_helper.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_hashtab.c
drm_internal.h drm/debugfs: create debugfs late register functions 2022-12-22 14:58:55 -03:00
drm_ioc32.c
drm_ioctl.c
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy.h
drm_legacy_misc.c
drm_lock.c
drm_managed.c
drm_memory.c
drm_mipi_dbi.c drm/mipi-dbi: Support separate I/O regulator 2022-12-14 14:57:09 +01:00
drm_mipi_dsi.c gpu/drm: fix repeated words in comments 2022-10-24 09:26:56 +02:00
drm_mm.c
drm_mode_config.c drm/debugfs: create debugfs late register functions 2022-12-22 14:58:55 -03:00
drm_mode_object.c
drm_modes.c drm/modes: Use strscpy() to copy command-line mode name 2022-12-01 11:12:44 +01:00
drm_modeset_helper.c drm/plane-helper: Provide DRM_PLANE_NON_ATOMIC_FUNCS initializer macro 2022-09-20 09:42:31 +02:00
drm_modeset_lock.c
drm_of.c
drm_panel.c
drm_panel_orientation_quirks.c drm: panel-orientation-quirks: Add quirk for DynaBook K50 2022-12-07 17:39:23 +01:00
drm_pci.c
drm_plane.c drm/plane: Allocate planes with drm_universal_plane_alloc() 2022-09-20 09:41:06 +02:00
drm_plane_helper.c drm/crtc-helper: Add a drm_crtc_helper_atomic_check() helper 2022-10-13 09:17:05 +02:00
drm_prime.c drm: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:47 +03:00
drm_print.c drm_print: add _ddebug descriptor to drm_*dbg prototypes 2022-09-24 15:02:02 +02:00
drm_privacy_screen.c
drm_privacy_screen_x86.c
drm_probe_helper.c drm/probe-helper: Provide a TV get_modes helper 2022-11-24 12:42:40 +01:00
drm_property.c
drm_rect.c gpu/drm: fix repeated words in comments 2022-10-24 09:27:04 +02:00
drm_scatter.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c drm/simple-kms: Remove drm_gem_simple_display_pipe_prepare_fb() 2022-12-05 13:35:37 +01:00
drm_syncobj.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c
Kconfig drm/tests: Introduce a config option for the KUnit helpers 2022-12-08 09:41:27 +01:00
Makefile drm/tests: Introduce a config option for the KUnit helpers 2022-12-08 09:41:27 +01:00