summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a4xx
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-09-03 16:07:17 -0400
committerRob Clark <[email protected]>2018-09-05 13:38:43 -0400
commita122118c14a3cc9da22b94174cae7ee8d8445dfa (patch)
tree13255fbc5fba72aeb524abdde8bf12dde6963829 /src/gallium/drivers/freedreno/a4xx
parenta45e1802db528a5d2e622daccc5ca29a3d3d88b3 (diff)
freedreno: add fd_context_batch() accessor
For cases in which (after the following commit) ctx->batch may be null. Prep work for following commit. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a4xx')
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_query.c b/src/gallium/drivers/freedreno/a4xx/fd4_query.c
index 0cd9ab31f6a..1a693aa3e12 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_query.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_query.c
@@ -117,7 +117,8 @@ time_elapsed_enable(struct fd_context *ctx, struct fd_ringbuffer *ring)
* just hard coded. If we start exposing more countables than we
* have counters, we will need to be more clever.
*/
- fd_wfi(ctx->batch, ring);
+ struct fd_batch *batch = fd_context_batch(ctx);
+ fd_wfi(batch, ring);
OUT_PKT0(ring, REG_A4XX_CP_PERFCTR_CP_SEL_0, 1);
OUT_RING(ring, CP_ALWAYS_COUNT);
}