Lines Matching refs:src
27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
34 drm_rect_init(&src, 0, 0, 0, 0); in drm_test_rect_clip_scaled_div_by_zero()
37 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
40 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_div_by_zero()
42 drm_rect_init(&src, 0, 0, 0, 0); in drm_test_rect_clip_scaled_div_by_zero()
45 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
48 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_div_by_zero()
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
57 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in drm_test_rect_clip_scaled_not_clipped()
61 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
63 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_not_clipped()
64 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
68 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_not_clipped()
71 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_not_clipped()
75 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
77 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_not_clipped()
78 src.y1 != 0 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
82 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_not_clipped()
85 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in drm_test_rect_clip_scaled_not_clipped()
89 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
91 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_not_clipped()
92 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
96 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_not_clipped()
101 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_clipped() local
105 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
109 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
111 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_clipped()
112 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
116 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_clipped()
119 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
123 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
125 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 1 << 16 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped()
126 src.y1 != 1 << 16 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
130 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_clipped()
133 drm_rect_init(&src, 0, 0, 4 << 16, 4 << 16); in drm_test_rect_clip_scaled_clipped()
137 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
139 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped()
140 src.y1 != 0 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
144 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_clipped()
147 drm_rect_init(&src, 0, 0, 4 << 16, 4 << 16); in drm_test_rect_clip_scaled_clipped()
151 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
153 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 2 << 16 || src.x2 != 4 << 16 || in drm_test_rect_clip_scaled_clipped()
154 src.y1 != 2 << 16 || src.y2 != 4 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
158 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_clipped()
161 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
165 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
167 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_clipped()
168 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
172 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_clipped()
175 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in drm_test_rect_clip_scaled_clipped()
179 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
181 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 1 << 16 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped()
182 src.y1 != 1 << 16 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
186 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_visible(&src), "Source should be visible\n"); in drm_test_rect_clip_scaled_clipped()
191 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_signed_vs_unsigned() local
202 drm_rect_init(&src, 0, 0, INT_MAX, INT_MAX); in drm_test_rect_clip_scaled_signed_vs_unsigned()
206 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_signed_vs_unsigned()
209 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_signed_vs_unsigned()
350 struct drm_rect src, dst; member
358 .src = DRM_RECT_INIT(0, 0, 2 << 16, 2 << 16),
365 .src = DRM_RECT_INIT(0, 0, 10 << 16, 10 << 16),
372 .src = DRM_RECT_INIT(0, 0, 2 << 16, 2 << 16),
379 .src = DRM_RECT_INIT(0, 0, 2 << 16, 2 << 16),
386 .src = DRM_RECT_INIT(0, 0, -(1 << 16), -(1 << 16)),
393 .src = DRM_RECT_INIT(0, 0, 1 << 16, 1 << 16),
412 scaling_factor = drm_rect_calc_hscale(¶ms->src, ¶ms->dst, in drm_test_rect_calc_hscale()
423 scaling_factor = drm_rect_calc_vscale(¶ms->src, ¶ms->dst, in drm_test_rect_calc_vscale()