broadcom/vc4: Add support for HW perfmon
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 11 Jan 2018 09:22:04 +0000 (10:22 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 5 Mar 2018 23:54:04 +0000 (15:54 -0800)
commit9ea90ffb98fbb5eac4cec5660a1ca2253c3a3e25
tree80cc4bd7fe6cece8bb1383c050b07c686133fb4b
parent5924379a587aa654a0a8bfd68a815b5bc906c1e9
broadcom/vc4: Add support for HW perfmon

The V3D engine provides several perf counters.
Implement ->get_driver_query_[group_]info() so that these counters are
exposed through the GL_AMD_performance_monitor extension.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_job.c
src/gallium/drivers/vc4/vc4_query.c
src/gallium/drivers/vc4/vc4_screen.c
src/gallium/drivers/vc4/vc4_screen.h