summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_context.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2019-04-09 17:55:40 +0000
committerGurchetan Singh <[email protected]>2019-04-15 23:25:47 +0000
commita23c091988f30fd432b5e1a68aedc95c307efa34 (patch)
treecd3dddd5930a34110259f18b005aa045821ad2ae /src/gallium/drivers/virgl/virgl_context.c
parent88e0bbf24aa82000195d10c7873f881d190b825b (diff)
virgl: handle fence_server_sync in winsys
It does not need help from the driver. This also fixes one issue where the fence is ignored when the transfer queue is full. Signed-off-by: Chia-I Wu <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_context.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c
index 6f546553204..f9591e214b5 100644
--- a/src/gallium/drivers/virgl/virgl_context.c
+++ b/src/gallium/drivers/virgl/virgl_context.c
@@ -759,7 +759,7 @@ static void virgl_flush_eq(struct virgl_context *ctx, void *closure,
ctx->num_transfers = ctx->num_draws = ctx->num_compute = 0;
virgl_transfer_queue_clear(&ctx->queue, ctx->cbuf);
- rs->vws->submit_cmd(rs->vws, ctx->cbuf, ctx->cbuf->in_fence_fd,
+ rs->vws->submit_cmd(rs->vws, ctx->cbuf,
ctx->cbuf->needs_out_fence_fd ? &out_fence_fd : NULL);
if (fence)
@@ -786,10 +786,6 @@ static void virgl_flush_from_st(struct pipe_context *ctx,
virgl_flush_eq(vctx, vctx, fence);
- if (vctx->cbuf->in_fence_fd != -1) {
- close(vctx->cbuf->in_fence_fd);
- vctx->cbuf->in_fence_fd = -1;
- }
vctx->cbuf->needs_out_fence_fd = false;
}