OSDN Git Service

i965: Enumerate the pipeline statistics register counters on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Oct 2013 23:02:35 +0000 (16:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Nov 2013 23:01:14 +0000 (15:01 -0800)
commit91950d1aeae6f1c6b0d859e588e59ae52840d4d8
tree8780521026ac33c43a29c9adfcf7a8263ef617c4
parent569adb40d7f3fa5084c20dd4b774fb1482d00c9c
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 <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_performance_monitor.c