diff options
author | Kenneth Graunke <[email protected]> | 2013-10-22 11:21:43 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-11-21 15:01:14 -0800 |
commit | 1172974ddddd785e7441d0eb68cc561b4e8d010f (patch) | |
tree | c1112f5b844d720ff6ece681ac0983dbe9efa8fa /src/mesa/main/depth.c | |
parent | fedc14a050cac9cc4501a648b9c84c62fc6e1086 (diff) |
i965: Reserve batchbuffer space for a closing MI_REPORT_PERF_COUNT.
In order to use the Observability Architecture effectively, we'll need
to take snapshots of the OA counters via MI_REPORT_PERF_COUNT at the
start and end of each batch.
Experimentation reveals that we need to flush before and after each
MI_REPORT_PERF_COUNT to get working values. For simplicitly, I chose to
use intel_batchbuffer_emit_mi_flush(), which unfortunately expands to
triple pipe controls on Sandybridge.
We may want to start computing per-generation reserved batch space to
avoid the insanity of Sandybridge's PIPE_CONTROL cost. That said, much
of this cost existed before I rewrote the query object support to use
hardware contexts, so it's at least not entirely new.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/depth.c')
0 files changed, 0 insertions, 0 deletions