search for: igt_debug

Displaying 14 results from an estimated 14 matches for "igt_debug".

Did you mean: dt_debug
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
...eInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, 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...
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
...eInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, 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...
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
...eInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, 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...
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
...2: * 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 ++++ lib/igt_debugfs.h | 1 + lib/igt_kms.c | 6 + lib/igt_k...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
...or 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 | 6 + lib/igt_k...
2020 Mar 18
6
[PATCH i-g-t 0/4] Add nouveau-crc tests
...uration 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 | 6 + lib/igt_k...
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
...eInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, 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, +...
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...t_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, > > + stru...
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
...ay 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 | 1 + lib/igt_k...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...t color_fb { > + double r, g, 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, > + siz...
2020 Mar 18
0
[PATCH i-g-t] tests/kms_plane: Generate reference CRCs for partial coverage too
...lane_set_fb(primary, &fb); ret = igt_display_try_commit2(&data->display, COMMIT_LEGACY); igt_skip_on(ret != 0); @@ -104,19 +158,24 @@ test_grab_crc(data_t *data, igt_output_t *output, enum pipe pipe, igt_remove_fb(data->drm_fd, &fb); crc_str = igt_crc_to_string(crc); - igt_debug("CRC for a (%.02f,%.02f,%.02f) fb: %s\n", fb_color->red, - fb_color->green, fb_color->blue, crc_str); + igt_debug("CRC for a %s covered (%.02f,%.02f,%.02f) fb: %s\n", + flags & TEST_POSITION_PARTIALLY_COVERED ? "partially" : "fully", + f...
2020 Mar 18
0
[PATCH i-g-t 1/4] lib/igt_core: Add igt_require_fd()
...e 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,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 s...
2020 Apr 17
0
[PATCH i-g-t v3 2/5] lib/igt_core: Add igt_require_fd()
...e 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_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 stringified identifier that was supposed + * to contain a valid fd on...
2020 Sep 30
0
[PATCH i-g-t v5 2/5] lib/igt_core: Add igt_require_fd()
...e 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_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 stringified identifier that was supposed + * to contain a valid fd on...