summaryrefslogtreecommitdiffstats
path: root/hw/display/virtio-gpu-3d.c
diff options
context:
space:
mode:
authorGuoqing Zhang2020-09-18 13:16:32 +0200
committerGerd Hoffmann2020-09-29 10:08:25 +0200
commit3745d59ee489bccdab8f678a0f7972e7dbe189f9 (patch)
treee56a9fa5c8142bf0a910a871c7cf33a27a8eaf06 /hw/display/virtio-gpu-3d.c
parentMerge remote-tracking branch 'remotes/alistair/tags/pull-register-20200927' i... (diff)
downloadqemu-3745d59ee489bccdab8f678a0f7972e7dbe189f9.tar.gz
qemu-3745d59ee489bccdab8f678a0f7972e7dbe189f9.tar.xz
qemu-3745d59ee489bccdab8f678a0f7972e7dbe189f9.zip
virtio-gpu-3d: fix abnormal display after a warm reboot
When resetting virtio-gpu, virgl_renderer_reset() should be called to ensure that the virglrenderer status is correct. Signed-off-by: Guoqing Zhang <zhangguoqing.kernel@bytedance.com> Reviewed-by: Qi Liu<liuqi.16@bytedance.com> Message-id: 20200918111632.37354-1-zhangguoqing.kernel@bytedance.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/virtio-gpu-3d.c')
-rw-r--r--hw/display/virtio-gpu-3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/virtio-gpu-3d.c b/hw/display/virtio-gpu-3d.c
index 96621576c2..1bd33d7aed 100644
--- a/hw/display/virtio-gpu-3d.c
+++ b/hw/display/virtio-gpu-3d.c
@@ -595,7 +595,7 @@ void virtio_gpu_virgl_reset(VirtIOGPU *g)
{
int i;
- /* virgl_renderer_reset() ??? */
+ virgl_renderer_reset();
for (i = 0; i < g->parent_obj.conf.max_outputs; i++) {
if (i != 0) {
dpy_gfx_replace_surface(g->parent_obj.scanout[i].con, NULL);