[Intel-gfx] [PATCH] drm/i915: add INTEL_GEN() helper shorthand for INTEL_INFO()->gen
Chris Wilson
chris at chris-wilson.co.uk
Thu Apr 7 09:52:34 UTC 2016
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>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list