diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-13 19:04:13 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 12:18:15 +0100 |
| commit | fb950bc17ff8dfa3235535a12f0c4dcde281b2e3 (patch) | |
| tree | 568e754927fbf31838c9b39163b576755b77bf9e /lib/intel_batchbuffer.h | |
| parent | 10f903aa23932e8bce383ee56db8aaefd73dfb28 (diff) | |
lib: Cache static queries
We frequently check for device capabilities, for which we can safely
assume that there is but one on a system and so cache the first query
value and return it for all future queries. The benefit is to reduce
dmesg debug spam which helps when either bringing up a test or trying to
track down why a test fails.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_batchbuffer.h')
0 files changed, 0 insertions, 0 deletions
