search for: igt_require_f

Displaying 10 results from an estimated 10 matches for "igt_require_f".

Did you mean: igt_require_fd
2020 Mar 18
0
[PATCH i-g-t 1/4] lib/igt_core: Add igt_require_fd()
...d, 12 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index fae5f59e..b66336cf 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1008,6 +1008,18 @@ void igt_describe_f(const char *fmt, ...); else igt_debug("Test requirement passed: %s\n", #expr); \ } while (0) +/** + * igt_require_fd: + * @fd: file descriptor + * + * Skips (sub-) test if the given file descriptor is invalid. + * + * Like igt_require(), but displays the values being compared on failure instead + * of simply printing the stringified expression.. + */ +#define igt_require_fd(fd) \ + igt_require_f(fd >= 0, &quo...
2020 Apr 17
0
[PATCH i-g-t v3 2/5] lib/igt_core: Add igt_require_fd()
From: Lyude Paul <lyude at redhat.com> Like igt_assert_fd(), but using igt_require() instead Changes since v1: * Fix documentation error in igt_require_fd() - Petri Latvala Signed-off-by: Lyude Paul <lyude at redhat.com> --- lib/igt_core.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index 3f69b072..8f68b2dd 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1021,6 +1021,18 @@ void igt_d...
2020 Sep 30
0
[PATCH i-g-t v5 2/5] lib/igt_core: Add igt_require_fd()
From: Lyude Paul <lyude at redhat.com> Like igt_assert_fd(), but using igt_require() instead Changes since v1: * Fix documentation error in igt_require_fd() - Petri Latvala Signed-off-by: Lyude Paul <lyude at redhat.com> --- lib/igt_core.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index e74ede8b..5d835260 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1021,6 +1021,18 @@ void igt_d...
2020 Mar 18
1
[PATCH i-g-t 1/2] tests/kms_pipe_crc_basic: Use igt_display_require_output_on_pipe()
...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_display_require_output_on_pipe(display, pipe); + output = igt_get_single_output_for_pipe(display, pipe); igt_display_reset(display); igt_output_set_pipe(output, pipe); -- 2.24.1
2020 Mar 18
6
[PATCH i-g-t 0/4] Add nouveau-crc tests
...9;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 implementation has some rather interesting design choices that needed to be worked around. Lyude Paul (4): lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests lib/drmtest.c | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 12 ++ lib/igt_debugfs.c | 29 ++++ lib/igt_debugfs.h | 1 + lib/igt_kms.c...
2015 Mar 12
0
[ANNOUNCE] intel-gpu-tools 1.10
...ix gem_render_copy 3d state setup Libin Yang (1): tools/intel_audio_dump: add details dump for Cherryview Lu, Han (1): tools/intel_audio_dump: add support for Skylake Marc Herbert (2): lib/igt_kms.c: remove tests dependency on VT /dev/tty0 lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n") Matt Roper (5): kms_cursor_crc: Kernel now checks for integer overflow tests/kms_universal_plane: Fix subtest enumeration kms_universal_plane: Check for cursor fb leaks tests/kms_plane: Ensure planes recover from DPMS igt.cocci: Re...
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
...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 lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests .gitlab-ci.yml | 2 +- lib/drmtest.c | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 16 +- lib/igt_debugfs.c | 21 +++ lib/igt_debugfs.h...
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
...is series adds the relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Changes since v2: * Fix build errors on mips/arm/aarch64 Changes since v1: * fix documentation errors Petri pointed out * Fix documentation for igt_require_fd() * Fix copyright year in tests/nouveau_crc.c Lyude Paul (5): lib/igt_core: Fix igt_assert_fd() documentation lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests lib/drmtest.c |...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
...il so I'm waiting for a moderator to fix that) So, this series adds the 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 lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests lib/drmtest.c | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 16 +- lib/igt_debugfs.c | 29 ++++ lib/igt_debugfs.h | 1 + lib/igt_kms.c...
2020 Mar 20
0
[ANNOUNCE] igt-gpu-tools 1.25
...p_gtt/basic-wc from BAT i915/gem_ctx_shared: Avoid clflush by using WC for readback i915/gem_exec_schedule: Only require the scheduler i915/gem_exec_schedule: Avoid using borked engines i915/gem_eio: Break early for small rings kms_ccs: Add the missing '\n' for igt_require_f i915/gem_persistent_relocs: Don't call DROP_IDLE in the middle of submitting debugfs_test: i915_emon_status is scheduled for removal lib/i915: Trim ring measurement by one lib/sw_sync: Fix querying fence status i915/gem_mmap_gtt: Test mmap_offset lifetime i91...