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>
This commit is contained in:
Chris Wilson
2014-08-29 14:49:59 +01:00
parent 822cc6a565
commit 23d961e950
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -12,6 +12,7 @@
struct intel_batchbuffer {
drm_intel_bufmgr *bufmgr;
uint32_t devid;
int gen;
drm_intel_bo *bo;