drm/i915: Cache GT fifo count for SandyBridge
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 May 2011 21:17:09 +0000 (22:17 +0100)
committerKeith Packard <keithp@keithp.com>
Wed, 13 Jul 2011 18:28:07 +0000 (11:28 -0700)
The read back of the available FIFO entries is vital for system
stability, but extremely costly. However, we only need a guide so as to
avoid eating into the reserved entries and since we are the only
consumer we can cache the read of the count from the last write.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found