[igt-dev] [PATCH i-g-t 2/2] tests/i915/kms_draw_crc.c: Test Cleanup
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Fri Jul 15 08:48:20 UTC 2022
On Fri-17-06-2022 03:26 am, Nidhi Gupta wrote:
> Sanitize the system state before starting the subtest.
>
> Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
> ---
> tests/i915/kms_draw_crc.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c
> index 04cae0aa..2fe78c32 100644
> --- a/tests/i915/kms_draw_crc.c
> +++ b/tests/i915/kms_draw_crc.c
> @@ -185,6 +185,7 @@ static void draw_method_subtest(enum igt_draw_method method,
> igt_skip_on(method == IGT_DRAW_MMAP_GTT &&
> !gem_has_mappable_ggtt(drm_fd));
>
> + igt_display_reset(&display);
It won't impact anything, since we are using drm call directly in this test.
- Bhanu
> igt_require(format_is_supported(formats[format_index], modifier));
>
> /* Use IGT_DRAW_MMAP_GTT/WC on an untiled buffer as the parameter for
> @@ -229,6 +230,8 @@ static void fill_fb_subtest(void)
> igt_crc_t base_crc, crc;
> bool has_4tile = intel_get_device_info(intel_get_drm_devid(drm_fd))->has_4tile;
>
> + igt_display_reset(&display);
> +
> igt_create_fb(drm_fd, ms.mode->hdisplay, ms.mode->vdisplay,
> DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR, &fb);
>
More information about the igt-dev
mailing list