Lines Matching +full:1 +full:- +full:16
1 // SPDX-License-Identifier: GPL-2.0
23 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
31 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
43 /* 1:1 scaling */ in drm_test_rect_clip_scaled_not_clipped()
44 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in drm_test_rect_clip_scaled_not_clipped()
45 drm_rect_init(&dst, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
46 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
50 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_not_clipped()
51 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
52 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped()
53 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
57 /* 2:1 scaling */ in drm_test_rect_clip_scaled_not_clipped()
58 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_not_clipped()
59 drm_rect_init(&dst, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
60 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
64 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_not_clipped()
65 src.y1 != 0 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
66 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped()
67 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
71 /* 1:2 scaling */ in drm_test_rect_clip_scaled_not_clipped()
72 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in drm_test_rect_clip_scaled_not_clipped()
78 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_not_clipped()
79 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
91 /* 1:1 scaling top/left clip */ in drm_test_rect_clip_scaled_clipped()
92 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
94 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_clipped()
98 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_clipped()
99 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
100 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_clipped()
101 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
105 /* 1:1 scaling bottom/right clip */ in drm_test_rect_clip_scaled_clipped()
106 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
108 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_clipped()
112 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 1 << 16 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped()
113 src.y1 != 1 << 16 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
114 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 1 || dst.x2 != 2 || dst.y1 != 1 || in drm_test_rect_clip_scaled_clipped()
119 /* 2:1 scaling top/left clip */ in drm_test_rect_clip_scaled_clipped()
120 drm_rect_init(&src, 0, 0, 4 << 16, 4 << 16); in drm_test_rect_clip_scaled_clipped()
122 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_clipped()
126 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped()
127 src.y1 != 0 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
128 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || dst.y1 != 0 || in drm_test_rect_clip_scaled_clipped()
129 dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
133 /* 2:1 scaling bottom/right clip */ in drm_test_rect_clip_scaled_clipped()
134 drm_rect_init(&src, 0, 0, 4 << 16, 4 << 16); in drm_test_rect_clip_scaled_clipped()
136 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_clipped()
140 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 2 << 16 || src.x2 != 4 << 16 || in drm_test_rect_clip_scaled_clipped()
141 src.y1 != 2 << 16 || src.y2 != 4 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
142 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 1 || dst.x2 != 2 || dst.y1 != 1 || in drm_test_rect_clip_scaled_clipped()
147 /* 1:2 scaling top/left clip */ in drm_test_rect_clip_scaled_clipped()
148 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
154 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_clipped()
155 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
161 /* 1:2 scaling bottom/right clip */ in drm_test_rect_clip_scaled_clipped()
162 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
168 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 1 << 16 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped()
169 src.y1 != 1 << 16 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
182 * 'clip.x2 - dst.x1 >= dst width' could result a negative in drm_test_rect_clip_scaled_signed_vs_unsigned()
191 drm_rect_init(&clip, 3, 3, 1, 1); in drm_test_rect_clip_scaled_signed_vs_unsigned()