aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_draw.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-07-30 08:12:46 -0700
committerRob Clark <[email protected]>2019-08-02 10:24:14 -0700
commitc93eae7f108d81239a03a195db334d41322d9152 (patch)
tree6a6f5c7decab5e6088546c99b5843969152c6d9f /src/gallium/drivers/freedreno/freedreno_draw.c
parent1637a5389096f8aef1d124e5aca698b9a0fa61eb (diff)
freedreno: drop unused fd_fence_ref param
The pscreen param was just there to satisfy pipe_screen::fence_reference But some of the internal uses passed NULL for screen. Which is a bit ugly. Instead drop the param and add a shim function to plug into the screen. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c
index 2bb19d37d4e..059de2ec8c6 100644
--- a/src/gallium/drivers/freedreno/freedreno_draw.c
+++ b/src/gallium/drivers/freedreno/freedreno_draw.c
@@ -93,7 +93,7 @@ fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
return;
}
- fd_fence_ref(pctx->screen, &ctx->last_fence, NULL);
+ fd_fence_ref(&ctx->last_fence, NULL);
/* Upload a user index buffer. */
struct pipe_resource *indexbuf = NULL;
@@ -311,7 +311,7 @@ fd_clear(struct pipe_context *pctx, unsigned buffers,
if (!fd_render_condition_check(pctx))
return;
- fd_fence_ref(pctx->screen, &ctx->last_fence, NULL);
+ fd_fence_ref(&ctx->last_fence, NULL);
if (ctx->in_blit) {
fd_batch_reset(batch);