[Intel-gfx] [PATCH] drm/i915: add INTEL_GEN() helper shorthand for INTEL_INFO()->gen

Jani Nikula jani.nikula at intel.com
Wed Apr 13 12:32:43 UTC 2016


On Thu, 07 Apr 2016, Jani Nikula <jani.nikula at intel.com> wrote:
> On Thu, 07 Apr 2016, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>> On Thu, Apr 07, 2016 at 12:48:17PM +0300, Jani Nikula wrote:
>>> Sudden realization:
>>> 
>>> $ grep -ho "INTEL_INFO([^)]*)->[a-zA-Z0-9_]*" *.[ch] | sed 's/.*->//' |\
>>>   sort | uniq -c | sort -rn | head -5
>>>   446 gen
>>>    24 num_pipes
>>>    10 ring_mask
>>>     9 color
>>>     4 subslice_per_slice
>>
>> Yes, we did get a bit carried away over the years. In the beginning, it
>> was IS_G4X this, IS_IGDNG that and only rarely IS_GEN()!
>>
>> Acked-by: Chris Wilson <chris at chris-wilson.co.uk>
>
> Thanks, pushed to drm-intel-next-queued, everybody go wild and start
> using it.

Actually pushed now. I don't know what happened the last time.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center


More information about the Intel-gfx mailing list