freedreno/query: add optional enable hook
authorRob Clark <robclark@freedesktop.org>
Wed, 10 Feb 2016 19:31:59 +0000 (14:31 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 17 Feb 2016 15:41:55 +0000 (10:41 -0500)
commit8529e210ecb2aa362f51399f8632c6d4429401cf
tree60338f162e45bab747264249134804aaf46e0bb6
parent45ab5b1c34a7fe78f6e5f95e11f24674657ecfd3
freedreno/query: add optional enable hook

Add enable hook for hw query providers.  Some will need to configure
perfctr selector registers, which we want to do at the start of the
submit.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_query_hw.c
src/gallium/drivers/freedreno/freedreno_query_hw.h