diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-21 10:37:18 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-27 16:15:29 +0100 |
commit | 975896fc88b77ef46a5f8d45b886d589ceb6c247 (patch) | |
tree | 8e3b9cdc6a54985423a10b018b651e3824f29806 | |
parent | eaa92c76ce65cd6a2da82839af2701030e97b37e (diff) | |
download | qemu-975896fc88b77ef46a5f8d45b886d589ceb6c247.zip qemu-975896fc88b77ef46a5f8d45b886d589ceb6c247.tar.gz qemu-975896fc88b77ef46a5f8d45b886d589ceb6c247.tar.bz2 |
virtio-gpu: use dpy_gl_scanout_disable
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1487669841-13668-4-git-send-email-kraxel@redhat.com
-rw-r--r-- | hw/display/virtio-gpu-3d.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/display/virtio-gpu-3d.c b/hw/display/virtio-gpu-3d.c index b526b3f..f49b7fe 100644 --- a/hw/display/virtio-gpu-3d.c +++ b/hw/display/virtio-gpu-3d.c @@ -185,8 +185,7 @@ static void virgl_cmd_set_scanout(VirtIOGPU *g, if (ss.scanout_id != 0) { dpy_gfx_replace_surface(g->scanout[ss.scanout_id].con, NULL); } - dpy_gl_scanout_texture(g->scanout[ss.scanout_id].con, 0, false, - 0, 0, 0, 0, 0, 0); + dpy_gl_scanout_disable(g->scanout[ss.scanout_id].con); } g->scanout[ss.scanout_id].resource_id = ss.resource_id; } @@ -597,7 +596,7 @@ void virtio_gpu_virgl_reset(VirtIOGPU *g) if (i != 0) { dpy_gfx_replace_surface(g->scanout[i].con, NULL); } - dpy_gl_scanout_texture(g->scanout[i].con, 0, false, 0, 0, 0, 0, 0, 0); + dpy_gl_scanout_disable(g->scanout[i].con); } } |