[igt-dev] [PATCH i-g-t v2 1/4] lib/intel_batchbuffer: Extend intel_bb

Chris Wilson chris at chris-wilson.co.uk
Tue Jun 23 10:07:29 UTC 2020


Quoting Zbigniew Kempczyński (2020-06-23 10:02:46)
> +void intel_bb_flush_on_ring(struct intel_bb *ibb, int ring)
> +{
> +       unsigned int used = intel_bb_out_flush(ibb);
> +       uint32_t ctx;
> +
> +       if (used == 0)
> +               return;
> +
> +       /* XXX bad kernel API */
> +       ctx = ibb->ctx;
> +       if (ring != I915_EXEC_RENDER)
> +               ctx = 0;

That uAPI mistake was erased from history.
-Chris


More information about the igt-dev mailing list