summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_batchbuffer.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-11-26 16:32:14 -0800
committerKenneth Graunke <kenneth@whitecape.org>2013-12-03 16:24:53 -0800
commite03994bf47f9741a7a3a6181eb4f4d0cf286f70f (patch)
tree8b26e34c2c69f587d42fcb30cf540ca10cd4f038 /src/mesa/drivers/dri/i965/intel_batchbuffer.c
parentda07e1b6837616ef101d1374dbff322694d6a7d9 (diff)
downloadexternal_mesa3d-e03994bf47f9741a7a3a6181eb4f4d0cf286f70f.zip
external_mesa3d-e03994bf47f9741a7a3a6181eb4f4d0cf286f70f.tar.gz
external_mesa3d-e03994bf47f9741a7a3a6181eb4f4d0cf286f70f.tar.bz2
Revert "i965: Move brw_emit_query_begin() to the render ring prelude."
This reverts commit a4bf7f6b6e612626c4e4fc21507ac213a7ba4b00. It breaks occlusion queries on Gen4-5. Doing this right will likely require larger changes, which should be done at a future date. Some Piglit tests still passed due to other bugs; fixing those revealed this problem. 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.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 25aacd9..6b25c02 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -182,13 +182,7 @@ do_batch_dump(struct brw_context *brw)
void
intel_batchbuffer_emit_render_ring_prelude(struct brw_context *brw)
{
- /* Without hardware contexts, we need to capture the pipeline statistics
- * registers at the start and end of each render ring batch, so we can see
- * what that batch contributed. Emit state packets to write them to a BO.
- */
- brw_emit_query_begin(brw);
-
- /* We may also need to enable and snapshot OA counters. */
+ /* We may need to enable and snapshot OA counters. */
brw_perf_monitor_new_batch(brw);
}