[Intel-gfx] [PATCH 09/17] drm/i915: init ring->id early

Chris Wilson chris at chris-wilson.co.uk
Sat Dec 14 22:45:34 CET 2013


On Fri, Dec 13, 2013 at 08:15:57PM -0800, Ben Widawsky wrote:
> Having the ring id all set up will allow us to use some macro shortcuts
> during ringbuffer init. Admittedly it leaves the code a bit confusing,
> having the initialization of the id member in a separate place - but I
> think the savings is worth it.

This is not required since the macro could be written more simply as
ring[i]->id == i.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list