linux/drivers/gpu/drm/loongson
Huacai Chen 5535d5e61a drm/loongson: Create blend mode property for cursor plane
After commit 860e748bdd ("drm: ensure blend mode supported if pixel
format with alpha exposed") we get warnings at boot:

loongson 0000:00:06.1: [drm] [PLANE:41:ls-cursor-plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.
loongson 0000:00:06.1: [drm] [PLANE:46:ls-cursor-plane-1] pixel format with alpha exposed but blend mode not setup. Please fix.

The reason is the cursor plane supports color formats with alpha but the
driver doesn't create blend mode property, which triggers the warning in
validate_blend_mode_for_alpha_formats().

The loongson DC HW doesn't support DRM_MODE_BLEND_PREMULTI, so create
blend mode property with DRM_MODE_BLEND_COVERAGE for cursor planes since
it is the only one implemented in the driver.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Jianmin Lv <lvjianmin@loongson.cn>
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Link: https://patch.msgid.link/20260903084212.3621540-1-chenhuacai@loongson.cn
2026-09-17 15:12:26 +08:00
..
Kconfig PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
loongson_device.c
loongson_module.c
loongson_module.h
lsdc_benchmark.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
lsdc_benchmark.h
lsdc_crtc.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
lsdc_debugfs.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
lsdc_drv.c drm: Consistently define pci_device_ids using named initializers 2026-06-17 11:07:01 +02:00
lsdc_drv.h
lsdc_gem.c drm/loongson: use drm_gem_ttm_dumb_map_offset() 2026-03-11 09:40:07 +01:00
lsdc_gem.h drm/loongson: use drm_gem_ttm_dumb_map_offset() 2026-03-11 09:40:07 +01:00
lsdc_gfxpll.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lsdc_gfxpll.h
lsdc_i2c.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lsdc_i2c.h
lsdc_irq.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
lsdc_irq.h
lsdc_output_7a1000.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
lsdc_output_7a2000.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
lsdc_output.h
lsdc_pixpll.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lsdc_pixpll.h
lsdc_plane.c drm/loongson: Create blend mode property for cursor plane 2026-09-17 15:12:26 +08:00
lsdc_probe.c
lsdc_probe.h
lsdc_regs.h
lsdc_ttm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lsdc_ttm.h
Makefile