summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_batchbuffer.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-11-02 20:58:10 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-11-21 15:01:14 -0800
commitc289c70ce156e1248c53f018401a7670b9f513eb (patch)
tree002b6b408eb993ea0b0611fcb5ef76111619b576 /src/mesa/drivers/dri/i965/intel_batchbuffer.h
parent834c9575b281f72385085fc1b9adca3893c9c71e (diff)
downloadexternal_mesa3d-c289c70ce156e1248c53f018401a7670b9f513eb.zip
external_mesa3d-c289c70ce156e1248c53f018401a7670b9f513eb.tar.gz
external_mesa3d-c289c70ce156e1248c53f018401a7670b9f513eb.tar.bz2
i965: Start and stop OA counters as necessary.
We need to start OA at the beginning of each batch where monitors are active. OACONTROL isn't part of the hardware context, so to avoid leaving counters enabled for other applications, we turn them off at the end of the batch too. We also need to start them at BeginPerfMonitor time (unless they've already been started). We stop them when the monitor last ends as well. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
index 861aed4..3b43ccf 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
@@ -19,8 +19,9 @@ extern "C" {
* - Optional MI_NOOP for ensuring the batch length is qword aligned (4 bytes)
* - Any state emitted by vtbl->finish_batch():
* - Gen4-5 record ending occlusion query values (4 * 4 = 16 bytes)
+ * - Disabling OA counters on Gen6+ (3 DWords = 12 bytes)
*/
-#define BATCH_RESERVED 24
+#define BATCH_RESERVED 36
struct intel_batchbuffer;