Lines Matching +full:0 +full:x10001

28 	if (plane_state->src.x1 < 0) {  in check_src_eq()
29 pr_err("src x coordinate %x should never be below 0.\n", plane_state->src.x1); in check_src_eq()
33 if (plane_state->src.y1 < 0) { in check_src_eq()
34 pr_err("src y coordinate %x should never be below 0.\n", plane_state->src.y1); in check_src_eq()
85 DRM_MODE("1024x768", 0, 65000, 1024, 1048, 1184, 1344, 0, 768, 771, in drm_test_check_plane_state()
86 777, 806, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC) in drm_test_check_plane_state()
104 set_src(&plane_state, 0, 0, fb.width << 16, fb.height << 16); in drm_test_check_plane_state()
105 set_crtc(&plane_state, 0, 0, fb.width, fb.height); in drm_test_check_plane_state()
110 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Simple clipping check should pass\n"); in drm_test_check_plane_state()
112 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 1024 << 16, 768 << 16)); in drm_test_check_plane_state()
113 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state()
121 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Rotated clipping check should pass\n"); in drm_test_check_plane_state()
123 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 768 << 16, 1024 << 16)); in drm_test_check_plane_state()
124 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state()
128 set_src(&plane_state, 0, 0, 1023 << 16, 767 << 16); in drm_test_check_plane_state()
129 set_crtc(&plane_state, 0, 0, 1023, 767); in drm_test_check_plane_state()
141 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Simple positioning should work\n"); in drm_test_check_plane_state()
143 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 1023 << 16, 767 << 16)); in drm_test_check_plane_state()
144 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1023, 767)); in drm_test_check_plane_state()
147 set_src(&plane_state, 0, 0, 512 << 16, 384 << 16); in drm_test_check_plane_state()
148 set_crtc(&plane_state, 0, 0, 1024, 768); in drm_test_check_plane_state()
150 0x8001, in drm_test_check_plane_state()
155 0x8000, in drm_test_check_plane_state()
158 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Upscaling exactly 2x should work\n"); in drm_test_check_plane_state()
160 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 512 << 16, 384 << 16)); in drm_test_check_plane_state()
161 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state()
163 set_src(&plane_state, 0, 0, 2048 << 16, 1536 << 16); in drm_test_check_plane_state()
166 0x1ffff, false, false); in drm_test_check_plane_state()
170 0x20000, false, false); in drm_test_check_plane_state()
171 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Should succeed with exact scaling limit\n"); in drm_test_check_plane_state()
173 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 2048 << 16, 1536 << 16)); in drm_test_check_plane_state()
174 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state()
177 set_src(&plane_state, 0, 0, 0x40001, 0x40001); in drm_test_check_plane_state()
181 0x10001, in drm_test_check_plane_state()
183 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Should succeed by clipping to exact multiple"); in drm_test_check_plane_state()
185 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 2 << 16, 2 << 16)); in drm_test_check_plane_state()
188 set_src(&plane_state, 0x20001, 0x20001, 0x4040001, 0x3040001); in drm_test_check_plane_state()
192 0x10001, in drm_test_check_plane_state()
194 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Should succeed by clipping to exact multiple"); in drm_test_check_plane_state()
196 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0x40002, 0x40002, in drm_test_check_plane_state()
198 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state()
200 set_src(&plane_state, 0, 0, 0x3ffff, 0x3ffff); in drm_test_check_plane_state()
203 0xffff, in drm_test_check_plane_state()
206 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Should succeed by clipping to exact multiple"); in drm_test_check_plane_state()
208 /* Should not be rounded to 0x20001, which would be upscaling. */ in drm_test_check_plane_state()
209 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 2 << 16, 2 << 16)); in drm_test_check_plane_state()
212 set_src(&plane_state, 0x1ffff, 0x1ffff, 0x403ffff, 0x303ffff); in drm_test_check_plane_state()
215 0xffff, in drm_test_check_plane_state()
218 KUNIT_EXPECT_FALSE_MSG(test, ret, 0, "Should succeed by clipping to exact multiple"); in drm_test_check_plane_state()
220 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0x3fffe, 0x3fffe, in drm_test_check_plane_state()
222 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state()