diff options
author | Rob Clark <[email protected]> | 2018-09-03 16:07:17 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-09-05 13:38:43 -0400 |
commit | a122118c14a3cc9da22b94174cae7ee8d8445dfa (patch) | |
tree | 13255fbc5fba72aeb524abdde8bf12dde6963829 /src/gallium/drivers/freedreno/freedreno_fence.c | |
parent | a45e1802db528a5d2e622daccc5ca29a3d3d88b3 (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/freedreno_fence.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_fence.c b/src/gallium/drivers/freedreno/freedreno_fence.c index e2602cb4112..489c8a3049c 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.c +++ b/src/gallium/drivers/freedreno/freedreno_fence.c @@ -132,7 +132,7 @@ void fd_fence_server_sync(struct pipe_context *pctx, struct pipe_fence_handle *fence) { struct fd_context *ctx = fd_context(pctx); - struct fd_batch *batch = ctx->batch; + struct fd_batch *batch = fd_context_batch(ctx); fence_flush(fence); |