Lines Matching refs:src

16 	struct drm_rect src, dst, clip;  in igt_drm_rect_clip_scaled_div_by_zero()  local
23 drm_rect_init(&src, 0, 0, 0, 0); in igt_drm_rect_clip_scaled_div_by_zero()
26 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_div_by_zero()
28 FAIL(drm_rect_visible(&src), "Source should not be visible\n"); in igt_drm_rect_clip_scaled_div_by_zero()
30 drm_rect_init(&src, 0, 0, 0, 0); in igt_drm_rect_clip_scaled_div_by_zero()
33 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_div_by_zero()
35 FAIL(drm_rect_visible(&src), "Source should not be visible\n"); in igt_drm_rect_clip_scaled_div_by_zero()
42 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_not_clipped() local
46 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in igt_drm_rect_clip_scaled_not_clipped()
50 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_not_clipped()
52 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_not_clipped()
53 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_not_clipped()
59 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_not_clipped()
62 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in igt_drm_rect_clip_scaled_not_clipped()
66 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_not_clipped()
68 FAIL(src.x1 != 0 || src.x2 != 2 << 16 || in igt_drm_rect_clip_scaled_not_clipped()
69 src.y1 != 0 || src.y2 != 2 << 16, in igt_drm_rect_clip_scaled_not_clipped()
75 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_not_clipped()
78 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in igt_drm_rect_clip_scaled_not_clipped()
82 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_not_clipped()
84 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_not_clipped()
85 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_not_clipped()
91 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_not_clipped()
98 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_clipped() local
102 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in igt_drm_rect_clip_scaled_clipped()
106 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_clipped()
108 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_clipped()
109 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_clipped()
115 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_clipped()
118 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in igt_drm_rect_clip_scaled_clipped()
122 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_clipped()
124 FAIL(src.x1 != 1 << 16 || src.x2 != 2 << 16 || in igt_drm_rect_clip_scaled_clipped()
125 src.y1 != 1 << 16 || src.y2 != 2 << 16, in igt_drm_rect_clip_scaled_clipped()
131 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_clipped()
134 drm_rect_init(&src, 0, 0, 4 << 16, 4 << 16); in igt_drm_rect_clip_scaled_clipped()
138 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_clipped()
140 FAIL(src.x1 != 0 || src.x2 != 2 << 16 || in igt_drm_rect_clip_scaled_clipped()
141 src.y1 != 0 || src.y2 != 2 << 16, in igt_drm_rect_clip_scaled_clipped()
147 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_clipped()
150 drm_rect_init(&src, 0, 0, 4 << 16, 4 << 16); in igt_drm_rect_clip_scaled_clipped()
154 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_clipped()
156 FAIL(src.x1 != 2 << 16 || src.x2 != 4 << 16 || in igt_drm_rect_clip_scaled_clipped()
157 src.y1 != 2 << 16 || src.y2 != 4 << 16, in igt_drm_rect_clip_scaled_clipped()
163 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_clipped()
166 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in igt_drm_rect_clip_scaled_clipped()
170 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_clipped()
172 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_clipped()
173 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_clipped()
179 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_clipped()
182 drm_rect_init(&src, 0, 0, 2 << 16, 2 << 16); in igt_drm_rect_clip_scaled_clipped()
186 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_clipped()
188 FAIL(src.x1 != 1 << 16 || src.x2 != 2 << 16 || in igt_drm_rect_clip_scaled_clipped()
189 src.y1 != 1 << 16 || src.y2 != 2 << 16, in igt_drm_rect_clip_scaled_clipped()
195 FAIL(!drm_rect_visible(&src), "Source should be visible\n"); in igt_drm_rect_clip_scaled_clipped()
202 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_signed_vs_unsigned() local
213 drm_rect_init(&src, 0, 0, INT_MAX, INT_MAX); in igt_drm_rect_clip_scaled_signed_vs_unsigned()
217 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_signed_vs_unsigned()
220 FAIL(drm_rect_visible(&src), "Source should not be visible\n"); in igt_drm_rect_clip_scaled_signed_vs_unsigned()