[igt-dev] [PATCH i-g-t v6 6/8] lib/intel_batchbuffer: Introduce temporary igt_fillfunc_v2_t

Chris Wilson chris at chris-wilson.co.uk
Wed May 20 10:02:23 UTC 2020


Quoting Zbigniew Kempczyński (2020-05-20 09:31:51)
> +igt_fillfunc_v2_t igt_get_gpgpu_fillfunc_v2(int devid)
> +{
> +       igt_fillfunc_v2_t fill = NULL;
> +
> +       if (IS_GEN7(devid))
> +               fill = gen7_gpgpu_fillfunc_v2;
> +       else if (IS_BROADWELL(devid))
> +               fill = gen8_gpgpu_fillfunc_v2;

Weird that it is not IS_GEN8. Worth checking while we are here.

> +       else if (IS_GEN9(devid) || IS_GEN10(devid))
> +               fill = gen9_gpgpu_fillfunc_v2;
> +       else if (IS_GEN11(devid))
> +               fill = gen11_gpgpu_fillfunc_v2;
> +       else if (IS_GEN12(devid))
> +               fill = gen12_gpgpu_fillfunc_v2;
> +
> +       return fill;
> +}


More information about the igt-dev mailing list