search for: igt_assert_fd

Displaying 11 results from an estimated 11 matches for "igt_assert_fd".

2020 Apr 17
0
[PATCH i-g-t v3 1/5] lib/igt_core: Fix igt_assert_fd() documentation
...en file descriptor is invalid. * - * Like igt_assert(), but displays the values being compared on failure instead - * of simply printing the stringified expression. + * Like igt_assert(), but displays the stringified identifier that was supposed + * to contain a valid fd on failure. */ #define igt_assert_fd(fd) \ igt_assert_f(fd >= 0, "file descriptor " #fd " failed\n"); -- 2.25.1
2020 Sep 30
0
[PATCH i-g-t v5 1/5] lib/igt_core: Fix igt_assert_fd() documentation
...en file descriptor is invalid. * - * Like igt_assert(), but displays the values being compared on failure instead - * of simply printing the stringified expression. + * Like igt_assert(), but displays the stringified identifier that was supposed + * to contain a valid fd on failure. */ #define igt_assert_fd(fd) \ igt_assert_f(fd >= 0, "file descriptor " #fd " failed\n"); -- 2.26.2
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
...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 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 +-...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] 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 (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 ++++...
2020 Mar 18
0
[PATCH i-g-t 1/4] lib/igt_core: Add igt_require_fd()
From: Lyude Paul <lyude at redhat.com> Like igt_assert_fd(), but using igt_require() instead 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 fae5f59e..b66336cf 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1008,6 +1008,...
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 3f69...
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 e74e...
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
...eresting 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 | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 16 +- lib/igt_debugfs.c | 29 ++++...
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 Mar 18
0
[PATCH i-g-t] tests/kms_plane: Generate reference CRCs for partial coverage too
...r, + const rectangle_t *rects, int rect_cnt, + struct igt_fb *fb /* out */) +{ + unsigned int fb_id; + cairo_t *cr; + + fb_id = igt_create_fb(data->drm_fd, + mode->hdisplay, mode->vdisplay, + DRM_FORMAT_XRGB8888, + LOCAL_DRM_FORMAT_MOD_NONE, + fb); + igt_assert_fd(fb_id); + + cr = igt_get_cairo_ctx(data->drm_fd, fb); + igt_paint_color(cr, 0, 0, mode->hdisplay, mode->vdisplay, + fb_color->red, fb_color->green, fb_color->blue); + for (int i = 0; i < rect_cnt; i++) { + const rectangle_t *rect = &rects[i]; + igt_paint_color(cr, +...
2015 Dec 02
0
[ANNOUNCE] intel-gpu-tools 1.13
...OCK between tests igt/gem_cs_prefetch: Convert to intel_require_memory() benchmarks/gem_exec_ctx: Measure switching between fds lib: gem_set_caching() use drmIoctl() rather than ioctl() Daniel Stone (10): lib/igt_core: Add igt_assert_neq_*() variants lib/igt_core: Add igt_assert_fd lib/igt.cocci: Add greater-than to igt_assert_lt* lib/drmtest: Add do_ioctl_err to expect failure lib/igt.cocci: De-opencode ioctls tests: Add blob-property test lib/tests: Add igt_assert_*() self-tests tests: Run igt.cocci tests/core_prop_blob: Add multipl...