diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-29 14:49:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-29 19:39:25 +0100 |
commit | 23d961e950e92bb00c7cb29fa73499af568e7571 (patch) | |
tree | 86c417157f29c16246f590c7a29d303019d77aa5 /lib/intel_batchbuffer.h | |
parent | 822cc6a5655db6c210204ca349dbbed05ee1838b (diff) |
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>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index 37151618..5db70fb6 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -12,6 +12,7 @@ struct intel_batchbuffer { drm_intel_bufmgr *bufmgr; uint32_t devid; + int gen; drm_intel_bo *bo; |