diff options
author | Marek Olšák <[email protected]> | 2018-04-01 15:37:11 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-05 15:34:58 -0400 |
commit | a8291a23c5fd4f18fe8d8f3acace222e9b04038d (patch) | |
tree | 134daacaf8916e7cbe71e51acd3062712523b767 /src/gallium/drivers/radeonsi/si_fence.c | |
parent | 3069cb8b7818fb4fe3a94924a18a68fd2ea1c6bc (diff) |
radeonsi: use r600_common_context less pt3
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_fence.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_fence.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/si_fence.c b/src/gallium/drivers/radeonsi/si_fence.c index 885ee025062..6d79fc62ec1 100644 --- a/src/gallium/drivers/radeonsi/si_fence.c +++ b/src/gallium/drivers/radeonsi/si_fence.c @@ -184,12 +184,10 @@ static void si_add_fence_dependency(struct si_context *sctx, ws->cs_add_fence_dependency(sctx->b.gfx_cs, fence); } -static void si_add_syncobj_signal(struct r600_common_context *rctx, +static void si_add_syncobj_signal(struct si_context *sctx, struct pipe_fence_handle *fence) { - struct radeon_winsys *ws = rctx->ws; - - ws->cs_add_syncobj_signal(rctx->gfx_cs, fence); + sctx->b.ws->cs_add_syncobj_signal(sctx->b.gfx_cs, fence); } static void si_fence_reference(struct pipe_screen *screen, @@ -588,16 +586,16 @@ finish: static void si_fence_server_signal(struct pipe_context *ctx, struct pipe_fence_handle *fence) { - struct r600_common_context *rctx = (struct r600_common_context *)ctx; + struct si_context *sctx = (struct si_context *)ctx; struct si_multi_fence *rfence = (struct si_multi_fence *)fence; /* We should have at least one syncobj to signal */ assert(rfence->sdma || rfence->gfx); if (rfence->sdma) - si_add_syncobj_signal(rctx, rfence->sdma); + si_add_syncobj_signal(sctx, rfence->sdma); if (rfence->gfx) - si_add_syncobj_signal(rctx, rfence->gfx); + si_add_syncobj_signal(sctx, rfence->gfx); /** * The spec does not require a flush here. We insert a flush |