diff options
author | Kenneth Graunke <[email protected]> | 2013-10-31 16:02:35 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-11-21 15:01:14 -0800 |
commit | 91950d1aeae6f1c6b0d859e588e59ae52840d4d8 (patch) | |
tree | 8780521026ac33c43a29c9adfcf7a8263ef617c4 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | 569adb40d7f3fa5084c20dd4b774fb1482d00c9c (diff) |
i965: Enumerate the pipeline statistics register counters on Gen6+.
For now, we only support these on Gen6+, since that's what currently
uses hardware contexts. When we add Ironlake hardware context support,
we can add pipeline statistics register support for that as well.
In theory, we could support pipeline statistics counters even without
hardware contexts, but it would be annoyingly painful.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 8d373ff780b..a2720d22c43 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -1399,6 +1399,11 @@ struct brw_context bool begin_emitted; } query; + struct { + /** A map from pipeline statistics counter IDs to MMIO addresses. */ + const int *statistics_registers; + } perfmon; + int num_atoms; const struct brw_tracked_state **atoms; |