[Intel-gfx] [PATCH] drm/i915: significantly reduce the use of <drm/i915_drm.h>

Jani Nikula jani.nikula at intel.com
Tue Feb 25 13:41:16 UTC 2020


On Tue, 25 Feb 2020, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> Quoting Jani Nikula (2020-02-25 13:07:28)
>> The #include has been splattered all over the place, but there are
>> precious few places, all .c files, that actually need it.
>> 
>> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>
> Trust in the compiler,
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Thanks!

> The users of i915_drv.h that irk me the most are where we only want the
> device_info/runtime_info. Might just bite the bullet and make those
> pointers and so not have to traverse through i915.

In general, struct drm_i915_private is just way too big. It requires the
definitions of almost everything, and almost everything needs struct
drm_i915_private definition. Static inlines that look inside i915 make
matters worse.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-gfx mailing list