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
31 lines
713 B
Makefile
31 lines
713 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_DRM_KUNIT_TEST_HELPERS) += \
|
|
drm_kunit_helpers.o
|
|
|
|
obj-$(CONFIG_DRM_KUNIT_TEST) += \
|
|
drm_atomic_test.o \
|
|
drm_atomic_state_test.o \
|
|
drm_bridge_test.o \
|
|
drm_buddy_test.o \
|
|
drm_cmdline_parser_test.o \
|
|
drm_connector_test.o \
|
|
drm_damage_helper_test.o \
|
|
drm_dp_mst_helper_test.o \
|
|
drm_exec_test.o \
|
|
drm_format_helper_test.o \
|
|
drm_format_test.o \
|
|
drm_framebuffer_test.o \
|
|
drm_gem_shmem_test.o \
|
|
drm_hdmi_state_helper_test.o \
|
|
drm_managed_test.o \
|
|
drm_mm_test.o \
|
|
drm_modes_test.o \
|
|
drm_plane_helper_test.o \
|
|
drm_probe_helper_test.o \
|
|
drm_rect_test.o \
|
|
drm_sysfb_modeset_test.o \
|
|
drm_fixp_test.o
|
|
|
|
CFLAGS_drm_mm_test.o := $(DISABLE_STRUCTLEAK_PLUGIN)
|