[igt-dev] [PATCH i-g-t v31 25/32] tests/gem_render_tiled_blits: remove libdrm dependency

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 26 16:29:06 UTC 2020


Quoting Zbigniew Kempczyński (2020-08-20 07:30:23)
>  static void
> -check_bo(struct intel_batchbuffer *batch, struct igt_buf *buf, uint32_t val)
> +check_buf(struct intel_bb *ibb, struct intel_buf *buf, uint32_t val)
>  {
> -       struct igt_buf tmp = {};
> +       int i915 = buf_ops_get_fd(linear.bops);
>         uint32_t *ptr;
>         int i;
>  
> -       tmp.bo = linear;
> -       tmp.surface[0].stride = STRIDE;
> -       tmp.tiling = I915_TILING_NONE;
> -       tmp.surface[0].size = SIZE;
> -       tmp.bpp = 32;
> +       render_copy(ibb, 0, buf, 0, 0, WIDTH, HEIGHT, &linear, 0, 0);
> +       intel_bb_sync(ibb);

ARGH. We are here to test the kernel API, let us test the API we came
here to test!
-Chris


More information about the igt-dev mailing list