[Intel-gfx] [PATCH 2/2] drm/i915/selftests: Check that GPR are cleared for new contexts

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 10 13:18:49 UTC 2019


Quoting Chris Wilson (2019-10-10 14:15:21)
> +static int __live_gpr_clear(struct i915_gem_context *fixme,
> +                           struct intel_engine_cs *engine,
> +                           struct i915_vma *scratch)
> +{
> +       struct intel_context *ce;
> +       struct i915_request *rq;
> +       u32 *cs;
> +       int err;
> +       int n;
> +
> +       if (INTEL_GEN(engine->i915) < 8 && engine->class != RENDER_CLASS)
> +               return 0; /* GPR only on rcs0 for gen8 */

Nice comment, shame about the code.

I'll wait to make sure that this does indeed fail on Broadwell.
-Chris


More information about the Intel-gfx mailing list