[Intel-gfx] [PATCH 01/11] drm/i915: Add a table with a descriptor for all i915 modifiers

Jani Nikula jani.nikula at linux.intel.com
Thu Oct 14 14:16:55 UTC 2021


On Thu, 14 Oct 2021, Jani Nikula <jani.nikula at linux.intel.com> wrote:
> On Thu, 07 Oct 2021, Imre Deak <imre.deak at intel.com> wrote:
>> +} intel_modifiers[] = {
>> +	{
>> +		.id = DRM_FORMAT_MOD_LINEAR,
>> +		.display_versions = DISPLAY_VER_MASK_ALL,
>
> What is this going to look like when display version mask isn't fine
> grained enough to cover all the platforms? Do we have cases like that
> already?

Day-dreaming, would be nice if we could turn our IS_PLATFORM() macros to
functions, and pass them as function pointers in places like this. Or
have lambda functions here.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-gfx mailing list