diff options
author | Rob Clark <[email protected]> | 2016-02-10 14:31:59 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-02-17 10:41:55 -0500 |
commit | 8529e210ecb2aa362f51399f8632c6d4429401cf (patch) | |
tree | 60338f162e45bab747264249134804aaf46e0bb6 /src/gallium/drivers/freedreno/a3xx | |
parent | 45ab5b1c34a7fe78f6e5f95e11f24674657ecfd3 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_emit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c index 811f58bbba2..8c37992e17d 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c @@ -33,6 +33,7 @@ #include "util/u_format.h" #include "freedreno_resource.h" +#include "freedreno_query_hw.h" #include "fd3_emit.h" #include "fd3_blend.h" @@ -888,6 +889,8 @@ fd3_emit_restore(struct fd_context *ctx) fd_wfi(ctx, ring); + fd_hw_query_enable(ctx, ring); + ctx->needs_rb_fbd = true; } |