[PATCH 2/2] drm/xe: drop display/ subdir from include directories

Lucas De Marchi lucas.demarchi at intel.com
Tue Jan 23 16:49:05 UTC 2024


On Mon, Jan 22, 2024 at 07:39:56PM +0200, Jani Nikula wrote:
>On Mon, 22 Jan 2024, Lucas De Marchi <lucas.demarchi at intel.com> wrote:
>> the downside of patch 1 is now that core xe code can include any of the
>> display/ headers, but only xe_display.h is acceptable to keep the
>> interface sane.
>
>I'd say xe_display.h remains the only interface towards xe core, I don't
>think this patch changes that, and its location doesn't really give any
>guarantees. It's been a matter of sticking display/ in the include
>anyway, and enforcing that is a matter of maintainer vigilance.

I just thought the previous split was slightly better: No code in xe
should include display/ and should rather use the xe_display.[hc]
interface.

Now with #include "display/xe_display.h" spread throughout the code,
this could serve as example for people to start including stuff they
shouldn't.

I'm not entirely opposed, so if you and others agree, please go ahead.

Lucas De Mrachi

>
>> Or are you thinking about changing the interface?
>
>I agree the interface should be in one file only, but changing the
>interface is an orthogonal matter (I have no plans atm).
>
>BR,
>Jani.
>
>
>-- 
>Jani Nikula, Intel


More information about the Intel-xe mailing list