diff options
author | Marek Olšák <[email protected]> | 2018-04-01 17:02:01 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-05 15:34:58 -0400 |
commit | 2a62e5eec92bc98c8c20e0b72cab4e14d112b2a4 (patch) | |
tree | 03f3689e60318ed4745701ccbf18c6df102efb49 /src/gallium/drivers/radeon | |
parent | 605ba1b9ae8012338f9ae6b9f0d0062a4a00c546 (diff) |
radeonsi: pass sctx to si_rebind_buffer and clean up
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 5a0e157eb1e..e54670aafb9 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -286,7 +286,7 @@ si_invalidate_buffer(struct si_context *sctx, /* Reallocate the buffer in the same pipe_resource. */ si_alloc_resource(sctx->screen, rbuffer); - si_rebind_buffer(&sctx->b.b, &rbuffer->b.b, old_va); + si_rebind_buffer(sctx, &rbuffer->b.b, old_va); } else { util_range_set_empty(&rbuffer->valid_buffer_range); } @@ -299,6 +299,7 @@ void si_replace_buffer_storage(struct pipe_context *ctx, struct pipe_resource *dst, struct pipe_resource *src) { + struct si_context *sctx = (struct si_context*)ctx; struct r600_resource *rdst = r600_resource(dst); struct r600_resource *rsrc = r600_resource(src); uint64_t old_gpu_address = rdst->gpu_address; @@ -316,7 +317,7 @@ void si_replace_buffer_storage(struct pipe_context *ctx, assert(rdst->bo_alignment == rsrc->bo_alignment); assert(rdst->domains == rsrc->domains); - si_rebind_buffer(ctx, dst, old_gpu_address); + si_rebind_buffer(sctx, dst, old_gpu_address); } static void si_invalidate_resource(struct pipe_context *ctx, |