search for: igt_get_single_output_for_pip

Displaying 13 results from an estimated 13 matches for "igt_get_single_output_for_pip".

2020 Mar 18
1
[PATCH i-g-t 1/2] tests/kms_pipe_crc_basic: Use igt_display_require_output_on_pipe()
...7bd..f121e27e 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -65,15 +65,14 @@ static void test_bad_source(data_t *data) static void test_read_crc(data_t *data, enum pipe pipe, unsigned flags) { igt_display_t *display = &data->display; - igt_output_t *output = igt_get_single_output_for_pipe(display, pipe); + igt_output_t *output; igt_plane_t *primary; drmModeModeInfo *mode; igt_crc_t *crcs = NULL; int c, j; - igt_skip_on(pipe >= data->display.n_pipes); - igt_require_f(output, "No connector found for pipe %s\n", - kmstest_pipe_name(pipe)); + igt_displa...
2020 Mar 18
0
[PATCH i-g-t 2/2] tests/kms_pipe_crc_basic: Add disable-crc-after-crtc-pipe-* tests
...ipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -152,6 +152,41 @@ static void test_read_crc(data_t *data, enum pipe pipe, unsigned flags) } } +static void test_disable_crc_after_crtc(data_t *data, enum pipe pipe) +{ + igt_display_t *display = &data->display; + igt_output_t *output = igt_get_single_output_for_pipe(&data->display, pipe); + igt_pipe_crc_t *pipe_crc = igt_pipe_crc_new(data->drm_fd, pipe, "auto"); + drmModeModeInfo *mode = igt_output_get_mode(output); + igt_crc_t crc[2]; + + igt_display_reset(display); + igt_output_set_pipe(output, pipe); + + igt_create_color_fb(data->drm...
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
...quire_pipe_crc(data.drm_fd); + igt_display_require(&data.display, data.drm_fd); + igt_display_reset(&data.display); + } + + for_each_pipe_static(pipe) { + igt_fixture { + int dir; + + data.pipe = pipe; + igt_display_require_output_on_pipe(&data.display, pipe); + data.output = igt_get_single_output_for_pipe(&data.display, pipe); + data.mode = igt_output_get_mode(data.output); + + /* None of these tests need to perform modesets, + * just page flips. So running display setup + * here is fine + */ + igt_output_set_pipe(data.output, pipe); + data.primary = igt_output_get_plane(data.o...
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
...quire_pipe_crc(data.drm_fd); + igt_display_require(&data.display, data.drm_fd); + igt_display_reset(&data.display); + } + + for_each_pipe_static(pipe) { + igt_fixture { + int dir; + + data.pipe = pipe; + igt_display_require_output_on_pipe(&data.display, pipe); + data.output = igt_get_single_output_for_pipe(&data.display, pipe); + data.mode = igt_output_get_mode(data.output); + + /* None of these tests need to perform modesets, + * just page flips. So running display setup + * here is fine + */ + igt_output_set_pipe(data.output, pipe); + data.primary = igt_output_get_plane(data.o...
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
...quire_pipe_crc(data.drm_fd); + igt_display_require(&data.display, data.drm_fd); + igt_display_reset(&data.display); + } + + for_each_pipe_static(pipe) { + igt_fixture { + int dir; + + data.pipe = pipe; + igt_display_require_output_on_pipe(&data.display, pipe); + data.output = igt_get_single_output_for_pipe(&data.display, pipe); + data.mode = igt_output_get_mode(data.output); + + /* None of these tests need to perform modesets, + * just page flips. So running display setup + * here is fine + */ + igt_output_set_pipe(data.output, pipe); + data.primary = igt_output_get_plane(data.o...
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
...splay_require_output_on_pipe(&data.display, pipe); + + /* Disable the output from the previous iteration of pipe tests, if there is + * one + */ + if (data.output) { + igt_output_set_pipe(data.output, PIPE_NONE); + igt_display_commit(&data.display); + } + + data.output = igt_get_single_output_for_pipe(&data.display, pipe); + data.mode = igt_output_get_mode(data.output); + + /* None of these tests need to perform modesets, just page flips. So running + * display setup here is fine + */ + igt_output_set_pipe(data.output, pipe); + data.primary = igt_output_get_plane(data.output,...
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that) So, this series adds the relevant tests for it since nvidia's CRC
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...;data.display); > > + } > > + > > + for_each_pipe_static(pipe) { > > + igt_fixture { > > + int dir; > > + > > + data.pipe = pipe; > > + igt_display_require_output_on_pipe(&data.display, > > pipe); > > + data.output = > > igt_get_single_output_for_pipe(&data.display, pipe); > > + data.mode = igt_output_get_mode(data.output); > > + > > + /* None of these tests need to perform modesets, > > + * just page flips. So running display setup > > + * here is fine > > + */ > > + igt_output_set_p...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...e(&data.display, data.drm_fd); > + igt_display_reset(&data.display); > + } > + > + for_each_pipe_static(pipe) { > + igt_fixture { > + int dir; > + > + data.pipe = pipe; > + igt_display_require_output_on_pipe(&data.display, pipe); > + data.output = igt_get_single_output_for_pipe(&data.display, pipe); > + data.mode = igt_output_get_mode(data.output); > + > + /* None of these tests need to perform modesets, > + * just page flips. So running display setup > + * here is fine > + */ > + igt_output_set_pipe(data.output, pipe); > + da...
2018 Aug 08
0
[ANNOUNCE] igt-gpu-tools 1.23
...ts lib/igt_kms: Fix enum type in igt_pipe_has_prop. tests/kms_frontbuffer_tracking: Reduce fbc status spam, v2. lib/igt_kms: Add functions to get only a single output for a pipe, v2. tests/kms_rmfb: Use for_each_pipe_with_single_output. tests/kms_busy: Convert to using igt_get_single_output_for_pipe, v2. tests/kms_chv_cursor_fail: Reorder tests, and use igt_display_require_output_on_pipe. tests/kms_chv_cursor_fail: Handle cleanup better. tests/kms_frontbuffer_tracking: Fix Y alignment in the scaledprimary subtest, v3. lib/igt_kms: Improve connector probing in igt_displ...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> (Just forwarding this to nouveau's ml, since I completely forgot to before) Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that)
2020 Mar 18
6
[PATCH i-g-t 0/4] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that) So, this series adds the relevant tests for it since nvidia's CRC
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, and at this point that support has made its way upstream. Hooray! So, let's start adding some relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Lyude Paul (5): lib/igt_core: Fix igt_assert_fd() documentation