linux/drivers/gpu/drm/tests
Harry Wentland b7f513803b drm/tests: Add a few tests around drm_fixed.h
While working on the CTM implementation of VKMS I had to ascertain
myself of a few assumptions. One of those is whether drm_fixed.h
treats its numbers using signed-magnitude or twos-complement. It is
twos-complement.

In order to make someone else's day easier I am adding the
drm_test_int2fixp test that validates the above assumption.

I am also adding a test for the new sm2fixp function that converts
from a signed-magnitude fixed point to the twos-complement fixed
point.

Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-22-alex.hung@amd.com
2025-11-26 23:03:33 +01:00
..
.kunitconfig drm/tests: make sure drm_client_modeset tests are enabled 2025-09-16 20:20:21 +03:00
Makefile drm/tests: Add a few tests around drm_fixed.h 2025-11-26 23:03:33 +01:00
drm_atomic_state_test.c drm/tests: Drop drm_kunit_helper_acquire_ctx_alloc() 2025-03-03 14:21:58 +01:00
drm_atomic_test.c drm/tests: Create tests for drm_atomic 2025-03-20 14:45:48 +01:00
drm_bridge_test.c drm/tests: bridge: add KUnit tests for devm_drm_bridge_alloc() 2025-06-06 15:50:23 +02:00
drm_buddy_test.c drm/buddy: Add KUnit tests for allocator performance under fragmentation 2025-10-07 19:19:15 +05:30
drm_client_modeset_test.c Merge tag 'drm-misc-next-2025-04-09' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next 2025-04-14 15:29:49 +10:00
drm_cmdline_parser_test.c drm/tests: cmdline: Fix drm_display_mode memory leak 2025-04-08 17:28:14 +02:00
drm_connector_test.c Linux 6.13 2025-01-23 14:42:21 +01:00
drm_damage_helper_test.c
drm_dp_mst_helper_test.c
drm_exec_test.c drm/test: drm_exec: use kzalloc() to allocate GEM objects 2025-08-29 17:42:20 +02:00
drm_fixp_test.c drm/tests: Add a few tests around drm_fixed.h 2025-11-26 23:03:33 +01:00
drm_format_helper_test.c drm/tests: Fix drm_test_fb_xrgb8888_to_xrgb2101010() on big-endian 2025-08-11 17:24:15 +02:00
drm_format_test.c
drm_framebuffer_test.c drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
drm_gem_shmem_test.c Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
drm_hdmi_state_helper_test.c drm/tests: hdmi: Add test for unsuccessful fallback to YUV420 2025-06-02 11:02:39 +02:00
drm_kunit_edid.h drm/tests: edid: Add edid-decode --check output 2025-07-16 17:31:42 +02:00
drm_kunit_helpers.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_managed_test.c
drm_mm_test.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
drm_modes_test.c drm/tests: modes: Fix drm_display_mode memory leak 2025-04-08 17:28:21 +02:00
drm_plane_helper_test.c
drm_probe_helper_test.c drm/tests: probe-helper: Fix drm_display_mode memory leak 2025-04-08 17:28:25 +02:00
drm_rect_test.c
drm_sysfb_modeset_test.c drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00