Lines Matching refs:dst
27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
35 drm_rect_init(&dst, 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()
43 drm_rect_init(&dst, 3, 3, 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()
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
58 drm_rect_init(&dst, 0, 0, 1, 1); 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()
65 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped()
66 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
72 drm_rect_init(&dst, 0, 0, 1, 1); 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()
79 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped()
80 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
86 drm_rect_init(&dst, 0, 0, 2, 2); 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()
93 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 2 || in drm_test_rect_clip_scaled_not_clipped()
94 dst.y1 != 0 || dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
101 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_clipped() local
106 drm_rect_init(&dst, 0, 0, 2, 2); in drm_test_rect_clip_scaled_clipped()
109 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
113 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_clipped()
114 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
120 drm_rect_init(&dst, 0, 0, 2, 2); in drm_test_rect_clip_scaled_clipped()
123 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
127 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 1 || dst.x2 != 2 || dst.y1 != 1 || in drm_test_rect_clip_scaled_clipped()
128 dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
134 drm_rect_init(&dst, 0, 0, 2, 2); in drm_test_rect_clip_scaled_clipped()
137 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
141 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || dst.y1 != 0 || in drm_test_rect_clip_scaled_clipped()
142 dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
148 drm_rect_init(&dst, 0, 0, 2, 2); in drm_test_rect_clip_scaled_clipped()
151 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
155 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 1 || dst.x2 != 2 || dst.y1 != 1 || in drm_test_rect_clip_scaled_clipped()
156 dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
162 drm_rect_init(&dst, 0, 0, 4, 4); in drm_test_rect_clip_scaled_clipped()
165 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
169 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 2 || dst.y1 != 0 || in drm_test_rect_clip_scaled_clipped()
170 dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
176 drm_rect_init(&dst, 0, 0, 4, 4); in drm_test_rect_clip_scaled_clipped()
179 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_clipped()
183 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 2 || dst.x2 != 4 || dst.y1 != 2 || in drm_test_rect_clip_scaled_clipped()
184 dst.y2 != 4, "Destination badly clipped\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
203 drm_rect_init(&dst, 0, 0, 2, 2); 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()
350 struct drm_rect src, dst; member
359 .dst = DRM_RECT_INIT(0, 0, 1 << 16, 1 << 16),
366 .dst = DRM_RECT_INIT(0, 0, 1 << 16, 1 << 16),
373 .dst = DRM_RECT_INIT(0, 0, 1 << 16, 1 << 16),
380 .dst = DRM_RECT_INIT(0, 0, 0 << 16, 0 << 16),
387 .dst = DRM_RECT_INIT(0, 0, 1 << 16, 1 << 16),
394 .dst = 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()