Lines Matching full:primary

116  *   - Black primary plane via traditional interfaces, red sprite, grab CRC:1.
117 * - Blue primary plane via traditional interfaces, red sprite, grab CRC:2.
118 * - Yellow primary via traditional interfaces
119 * - Blue primary plane, red sprite via universal planes, grab CRC:3 and compare
121 * - Disable primary plane, grab CRC:4 (should be same as CRC:1)
122 * - Reenable primary, grab CRC:5 (should be same as CRC:2 and CRC:3)
123 * - Yellow primary, no sprite
126 * - Program blue primary (while CRTC off)
134 igt_plane_t *primary, *sprite; in functional_test_pipe() local
146 * Make sure we have no more than one primary or cursor plane per crtc. in functional_test_pipe()
160 primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); in functional_test_pipe()
169 /* Step 1: Legacy API's, black primary, red sprite (CRC 1) */ in functional_test_pipe()
170 igt_plane_set_fb(primary, &test.black_fb); in functional_test_pipe()
175 /* Step 2: Legacy API', blue primary, red sprite (CRC 2) */ in functional_test_pipe()
176 igt_plane_set_fb(primary, &test.blue_fb); in functional_test_pipe()
181 /* Step 3: Legacy API's, yellow primary (CRC 3) */ in functional_test_pipe()
182 igt_plane_set_fb(primary, &test.yellow_fb); in functional_test_pipe()
186 /* Step 4: Universal API's, blue primary, red sprite (CRC 4) */ in functional_test_pipe()
187 igt_plane_set_fb(primary, &test.blue_fb); in functional_test_pipe()
192 /* Step 5: Universal API's, disable primary plane (CRC 5) */ in functional_test_pipe()
193 igt_plane_set_fb(primary, NULL); in functional_test_pipe()
197 /* Step 6: Universal API's, re-enable primary with blue (CRC 6) */ in functional_test_pipe()
198 igt_plane_set_fb(primary, &test.blue_fb); in functional_test_pipe()
202 /* Step 7: Legacy API's, yellow primary, no sprite */ in functional_test_pipe()
203 igt_plane_set_fb(primary, &test.yellow_fb); in functional_test_pipe()
208 igt_plane_set_fb(primary, NULL); in functional_test_pipe()
213 * - multiple primary fb's, ending in blue in functional_test_pipe()
217 igt_plane_set_fb(primary, &test.yellow_fb); in functional_test_pipe()
219 igt_plane_set_fb(primary, &test.black_fb); in functional_test_pipe()
221 igt_plane_set_fb(primary, &test.blue_fb); in functional_test_pipe()
230 /* Step 11: Disable primary plane */ in functional_test_pipe()
231 igt_plane_set_fb(primary, NULL); in functional_test_pipe()
235 igt_plane_set_fb(primary, &test.yellow_fb); in functional_test_pipe()
239 /* Step 13: Legacy API', blue primary, red sprite */ in functional_test_pipe()
240 igt_plane_set_fb(primary, &test.blue_fb); in functional_test_pipe()
244 /* Step 14: Universal API, set primary completely offscreen (CRC 9) */ in functional_test_pipe()
245 igt_assert(drmModeSetPlane(data->drm_fd, primary->drm_plane->plane_id, in functional_test_pipe()
257 * Step 15: Explicitly disable primary after it's already been in functional_test_pipe()
260 igt_plane_set_fb(primary, NULL); in functional_test_pipe()
264 /* Step 16: Legacy API's, blue primary, red sprite */ in functional_test_pipe()
265 igt_plane_set_fb(primary, &test.blue_fb); in functional_test_pipe()
272 /* Disabling primary plane should be same as black primary */ in functional_test_pipe()
275 /* Re-enabling primary should return to blue properly */ in functional_test_pipe()
285 * We should be able to modeset with the primary plane off in functional_test_pipe()
291 * We should be able to move the primary plane completely offscreen in functional_test_pipe()
298 * implicitly-disabled primary plane in functional_test_pipe()
302 igt_plane_set_fb(primary, NULL); in functional_test_pipe()
354 * - Primary doesn't cover CRTC
355 * - Primary plane tries to scale down
356 * - Primary plane tries to scale up
362 igt_plane_t *primary; in sanity_test_pipe() local
374 primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); in sanity_test_pipe()
377 igt_plane_set_fb(primary, &test.blue_fb); in sanity_test_pipe()
381 * Try to use universal plane API to set primary plane that in sanity_test_pipe()
385 igt_plane_set_fb(primary, &test.undersized_fb); in sanity_test_pipe()
390 igt_plane_set_position(primary, 100, 100); in sanity_test_pipe()
393 igt_plane_set_position(primary, 0, 0); in sanity_test_pipe()
397 igt_assert(drmModeSetPlane(data->drm_fd, primary->drm_plane->plane_id, in sanity_test_pipe()
408 igt_assert(drmModeSetPlane(data->drm_fd, primary->drm_plane->plane_id, in sanity_test_pipe()
418 /* Find other crtcs and try to program our primary plane on them */ in sanity_test_pipe()
422 primary->drm_plane->plane_id, in sanity_test_pipe()
433 igt_plane_set_fb(primary, NULL); in sanity_test_pipe()
472 igt_plane_t *primary; in pageflip_test_pipe() local
485 primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); in pageflip_test_pipe()
488 igt_plane_set_fb(primary, &test.blue_fb); in pageflip_test_pipe()
491 /* Disable the primary plane */ in pageflip_test_pipe()
492 igt_plane_set_fb(primary, NULL); in pageflip_test_pipe()
498 * Note that crtc->primary->fb = NULL causes flip to return EBUSY for in pageflip_test_pipe()
504 /* Turn primary plane back on */ in pageflip_test_pipe()
505 igt_plane_set_fb(primary, &test.blue_fb); in pageflip_test_pipe()
509 * Issue a pageflip to red, then immediately try to disable the primary in pageflip_test_pipe()
518 igt_plane_set_fb(primary, NULL); in pageflip_test_pipe()
530 igt_plane_set_fb(primary, NULL); in pageflip_test_pipe()
572 igt_plane_t *primary, *cursor; in cursor_leak_test_pipe() local
610 primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); in cursor_leak_test_pipe()
612 if (!primary || !cursor) { in cursor_leak_test_pipe()
614 igt_skip("Primary and/or cursor are unavailable\n"); in cursor_leak_test_pipe()
618 igt_plane_set_fb(primary, &background_fb); in cursor_leak_test_pipe()
639 igt_plane_set_fb(primary, NULL); in cursor_leak_test_pipe()
696 * Test features specific to gen9+ platforms (i.e., primary plane
703 igt_plane_t *primary; in gen9_test_pipe() local
714 primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); in gen9_test_pipe()
716 /* Start with a full-screen primary plane */ in gen9_test_pipe()
717 igt_plane_set_fb(primary, &test.biggreen_fb); in gen9_test_pipe()
720 /* Set primary to windowed size/position */ in gen9_test_pipe()
721 igt_plane_set_fb(primary, &test.smallblue_fb); in gen9_test_pipe()
722 igt_plane_set_position(primary, test.x, test.y); in gen9_test_pipe()
723 igt_plane_set_size(primary, test.w, test.h); in gen9_test_pipe()
730 igt_plane_set_fb(primary, &test.smallred_fb); in gen9_test_pipe()
731 igt_plane_set_position(primary, test.x, test.y); in gen9_test_pipe()
732 igt_plane_set_size(primary, test.w, test.h); in gen9_test_pipe()
740 igt_plane_set_fb(primary, NULL); in gen9_test_pipe()
741 igt_plane_set_position(primary, 0, 0); in gen9_test_pipe()
771 igt_subtest_f("disable-primary-vs-flip-pipe-%s", in run_tests_for_pipe()