virgl: fix vtest regression since fencing changes.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Nov 2018 05:47:40 +0000 (15:47 +1000)
committerRobert Foss <robert.foss@collabora.com>
Mon, 19 Nov 2018 14:33:19 +0000 (15:33 +0100)
The in_fence_fd needs to be initialised to -1.

Fixes: d1a1c21e7 (virgl: native fence fd support)
Reviewed-by: Robert Foss <robert.foss@collabora.com>
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c

index bc7a8965be90eb98cf7356577897e0f6eeb0ba4e..a23f8539241fcf87ee8369cf5a23a327fa7e82c6 100644 (file)
@@ -427,6 +427,7 @@ static struct virgl_cmd_buf *virgl_vtest_cmd_buf_create(struct virgl_winsys *vws
    }
    cbuf->ws = vws;
    cbuf->base.buf = cbuf->buf;
+   cbuf->base.in_fence_fd = -1;
    return &cbuf->base;
 }