diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index bafec289cc7..f095920489f 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -506,14 +506,13 @@ void virgl_transfer_inline_write(struct pipe_context *ctx, struct virgl_context *vctx = virgl_context(ctx); struct virgl_screen *vs = virgl_screen(ctx->screen); struct virgl_resource *grres = virgl_resource(res); - struct virgl_buffer *vbuf = virgl_buffer(res); grres->clean = FALSE; - if (virgl_res_needs_flush_wait(vctx, &vbuf->base, usage)) { + if (virgl_res_needs_flush_wait(vctx, grres, usage)) { ctx->flush(ctx, NULL, 0); - vs->vws->resource_wait(vs->vws, vbuf->base.hw_res); + vs->vws->resource_wait(vs->vws, grres->hw_res); } virgl_encoder_inline_write(vctx, grres, level, usage, |