[Intel-gfx] [PATCH 2/3] drm/i915: split irq handling into per-chipset functions

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 7 23:50:42 CEST 2011


On Thu,  7 Apr 2011 14:32:59 -0700, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> Set the IRQ handling functions in driver load so they'll just be used
> directly, rather than branching over most of the code in the chipset
> functions.

This is the direction we definitely need to go in. However, it is still a
tangled mess of which functions are called for which chipset.

Is it any clearer to have a display vfunc table for each chipset? It would
still be a mess, but at least there will be an overview of how each chipset
works in a single spot. Invaluable for tracing through the function
pointers later.

One thing we need to be careful is to move the common code into small
helper routines to avoid unnecessarily duplicating it.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list