diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2016-01-18 12:14:10 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-01-21 18:03:39 +1000 |
commit | 7c3927ce0826ad01b544b7a21f3f6f701318f289 (patch) | |
tree | 808138b733558414e82ac77dd4cdbdaad3319d0d /vtest | |
parent | a603f027aae0c5cf9a2ed3d055e838e30c6e4191 (diff) |
vtest: use VIRGL_RENDERER_THREAD_SYNC
Built-in EGL supports threaded contexts, so enable sync thread.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'vtest')
-rw-r--r-- | vtest/vtest_renderer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vtest/vtest_renderer.c b/vtest/vtest_renderer.c index 8c8ca33..6e5d9a2 100644 --- a/vtest/vtest_renderer.c +++ b/vtest/vtest_renderer.c @@ -96,7 +96,9 @@ int vtest_create_renderer(int fd, uint32_t length) renderer.remote_fd = fd; - virgl_renderer_init(&renderer, VIRGL_RENDERER_USE_EGL, &vtest_cbs); + virgl_renderer_init(&renderer, + VIRGL_RENDERER_USE_EGL | + VIRGL_RENDERER_THREAD_SYNC, &vtest_cbs); vtestname = malloc(length); if (!vtestname) |