lib/batchbuffer: Store the gen in a local variable
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Aug 2014 13:49:59 +0000 (14:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Aug 2014 18:39:25 +0000 (19:39 +0100)
commit23d961e950e92bb00c7cb29fa73499af568e7571
tree86c417157f29c16246f590c7a29d303019d77aa5
parent822cc6a5655db6c210204ca349dbbed05ee1838b
lib/batchbuffer: Store the gen in a local variable

Reduce lookups and improve code clarity.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
lib/intel_batchbuffer.c
lib/intel_batchbuffer.h