linux/drivers/gpu/drm/vkms
Maíra Canal ab87f558dc
drm/vkms: Fix RGB565 pixel conversion
Currently, the pixel conversion isn't rounding the fixed-point values
before assigning it to the RGB coefficients, which is causing the IGT
pixel-format tests to fail. So, use the drm_fixp2int_round() fixed-point
helper to round the values when assigning it to the RGB coefficients.

Tested with igt@kms_plane@pixel-format and igt@kms_plane@pixel-format-source-clamping.

[v2]:
    * Use drm_fixp2int_round() to fix the pixel conversion instead of
      casting the values to s32 (Melissa Wen).

Fixes: 89b03aeaef ("drm/vkms: fix 32bit compilation error by replacing macros")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512104044.65034-2-mcanal@igalia.com
2023-05-15 10:58:11 -03:00
..
Makefile
vkms_composer.c drm/vkms: add rotate-270 property 2023-05-08 09:57:20 -03:00
vkms_crtc.c drm/vkms: Use drmm_crtc_init_with_planes() 2023-04-12 10:38:33 -03:00
vkms_drv.c drm/vkms: Use drmm_mode_config_init() 2023-04-12 10:38:34 -03:00
vkms_drv.h drm/vkms: add rotate-0 and reflect-x property 2023-05-08 09:46:13 -03:00
vkms_formats.c drm/vkms: Fix RGB565 pixel conversion 2023-05-15 10:58:11 -03:00
vkms_formats.h drm/vkms: isolate pixel conversion functionality 2023-04-24 17:09:19 -03:00
vkms_output.c drm/vkms: Remove <drm/drm_simple_kms_helper.h> include 2023-04-07 13:16:38 +02:00
vkms_plane.c drm/vkms: add rotate-270 property 2023-05-08 09:57:20 -03:00
vkms_writeback.c