From adf469f2b79513185393758d241e94e7d40d6618 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 14 Apr 2026 09:02:28 +0200 Subject: [PATCH] drm/ast: Remove traces of DRM_FORMAT_RGB888 handling There's some incomplete handling for DRM_FORMAT_RGB888 in the mode- setting code. It was added by ast's original commit, which imported the code from the user-space Xorg driver. But the hardware doesn't support 24-bit pixel sizes. Hence remove the traces of RGB888 from ast. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Link: https://patch.msgid.link/20260414070522.33943-3-tzimmermann@suse.de --- drivers/gpu/drm/ast/ast_mode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index c150b83aaca7..49585fd16267 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -155,7 +155,6 @@ static void ast_set_vbios_color_reg(struct ast_device *ast, case 2: color_index = HiCModeIndex; break; - case 3: case 4: color_index = TrueCModeIndex; break; @@ -765,7 +764,6 @@ static int ast_crtc_helper_atomic_check(struct drm_crtc *crtc, case DRM_FORMAT_RGB565: ast_state->std_table = &vbios_stdtable[HiCModeIndex]; break; - case DRM_FORMAT_RGB888: case DRM_FORMAT_XRGB8888: ast_state->std_table = &vbios_stdtable[TrueCModeIndex]; break;