[igt-dev] [PATCH i-g-t] tests/i915_pm_rpm: use device coherent mapping instead of mmap_gtt

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 11 09:32:40 UTC 2020


Quoting Ashutosh Dixit (2020-03-11 05:44:02)
> @@ -1629,7 +1629,9 @@ static void cursor_subtest(bool dpms)
>          * hopefully it has some fences around it. */
>         rc = drmModeRmFB(drm_fd, cursor_fb3.fb_id);
>         igt_assert_eq(rc, 0);
> -       gem_set_tiling(drm_fd, cursor_fb3.gem_handle, false, cursor_fb3.strides[0]);
> +       if (gem_available_fences(drm_fd))
> +               gem_set_tiling(drm_fd, cursor_fb3.gem_handle, false,
> +                              cursor_fb3.strides[0]);

We still have __gem_set_tiling() to ignore the result if we don't care?
-Chris


More information about the igt-dev mailing list