panfrost: Expose perf counters in environment
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 25 Feb 2019 03:31:29 +0000 (03:31 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 27 Feb 2019 03:56:38 +0000 (03:56 +0000)
commit4c82abb9b603af1d799d8e3864ff7c7e846fa6ee
tree17b552094a260971cd0c93857148163f9e2b30ff
parent60270c83b5e759e4b5edbe5270fe26d52a3967d0
panfrost: Expose perf counters in environment

Previously, we were guarded by an #ifdef, which is generally a bad form.
This patch instead guards them behind an environmental variable.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_screen.h