search for: igt_assert

Displaying 17 results from an estimated 17 matches for "igt_assert".

2020 Apr 17
0
[PATCH i-g-t v3 1/5] lib/igt_core: Fix igt_assert_fd() documentation
From: Lyude Paul <lyude at redhat.com> As Petri Latvala pointed out, some of the documentation in this macro is mistakenly copied from the other igt_assert*() macros. Let's fix that. Signed-off-by: Lyude Paul <lyude at redhat.com> --- lib/igt_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/igt_core.h b/lib/igt_core.h index b97fa2fa..3f69b072 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -966,8 +966,...
2020 Sep 30
0
[PATCH i-g-t v5 1/5] lib/igt_core: Fix igt_assert_fd() documentation
From: Lyude Paul <lyude at redhat.com> As Petri Latvala pointed out, some of the documentation in this macro is mistakenly copied from the other igt_assert*() macros. Let's fix that. Signed-off-by: Lyude Paul <lyude at redhat.com> --- lib/igt_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/igt_core.h b/lib/igt_core.h index c5871520..e74ede8b 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -966,8 +966,...
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 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 +...
2015 Dec 02
0
[ANNOUNCE] intel-gpu-tools 1.13
...destination buffer igt/drm_read: Clear O_NONBLOCK 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...
2015 Mar 12
0
[ANNOUNCE] intel-gpu-tools 1.10
..._aux: s/swap/igt_swap/ tests/gem_wait: Adjust makefile doc: Consolidate naming conventions into docbook lib/igt_gt: Document and consolidate tests/gem_ctx_param_basic: Include header, not source tests/drv_suspend: Unrename tests tests/kms_universal_planes: Inline igt_assert(ret == 0) checks lib: add igt_assert_lt lib/igt_core: don't add newlines in logging functions tests/gem_tiled_swapping: Skip on L-shaped memory NEWS: Update to prep for release David Weinehall (1): tests/drv_suspend: hibernation test Deepak S (2): tests/pm_...
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, +...
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
..., b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +static void create_colors(data_t *data, + struct color_fb *colors, + size_t len, + igt_pipe_crc_t *pipe_crc) +{ + char *crc_str; + + igt_pipe_crc_start(pipe_crc); + + for (int i =...
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
..., b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +static void create_colors(data_t *data, + struct color_fb *colors, + size_t len, + igt_pipe_crc_t *pipe_crc) +{ + char *crc_str; + + igt_pipe_crc_start(pipe_crc); + + for (int i =...
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
..., b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +static void create_colors(data_t *data, + struct color_fb *colors, + size_t len, + igt_pipe_crc_t *pipe_crc) +{ + char *crc_str; + + igt_pipe_crc_start(pipe_crc); + + for (int i =...
2017 Jun 09
1
[ANNOUNCE] intel-gpu-tools 1.19
...ngine test Oscar Mateo (1): tests/pm_sseu: Re-enable the test Petri Latvala (18): Update MAINTAINERS file igt_command_line.sh: Handle the special cases of drv_selftest and drm_mm igt_command_line.sh: Actually check things during distcheck lib/igt_kmod: Don't call igt_assert or igt_require without a fixture intel-ci: Add extended.testlist for wider testing benchmarks: Add gem_wsim to .gitignore Revert "autotools requires headers to be listed" benchmarks: Make sure ewma.h and ilog2.h are bundled in dist Revert "Revert "l...
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
..., b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +/* Initialize each color_fb along with its respective CRC */ +static void create_crc_colors(data_t *data, + struct color_fb *colors, + size_t len, + igt_pipe_crc_t *pip...
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...R(r_, g_, b_) \ > > + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } > > + > > +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) > > +{ > > + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); > > + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", > > "%d", threshold)); > > +} > > + > > +static void create_colors(data_t *data, > > + struct color_fb *colors, > > + size_t len, > > + igt_pipe_crc_t *pipe_crc) &...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...> + > +#define HEX_COLOR(r_, g_, b_) \ > + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } > + > +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) > +{ > + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); > + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); > +} > + > +static void create_colors(data_t *data, > + struct color_fb *colors, > + size_t len, > + igt_pipe_crc_t *pipe_crc) Not to bikeshed too much, but this funct...
2016 May 31
0
[ANNOUNCE] intel-gpu-tools 1.15
...ect inject_load_failure module option Jani Nikula (32): man: rewrite manual pages in reStructuredText man: update intel_reg.rst to be more in line with the others lib/intel_chipset: drop unused IS_9XX() tools/intel_reg_decode: drop confusing use of IS_965() tests: use igt_assert_lte to verify pm_backlight test results tests: add context param to pm_backlight tests tests: limit pm_backlight actual brightness tolerance between 0 and max tests/kms_sink_crc_basic: clean up assert_color and provide more details man: add .gitignore with defs.rst too...
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