qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Guoqing Zhang <zhangguoqing.kernel@bytedance.com>
To: Gerd Hoffmann <kraxel@redhat.com>,
	"Michael S . Tsirkin" <mst@redhat.com>
Cc: Guoqing Zhang <zhangguoqing.kernel@bytedance.com>,
	qemu-devel@nongnu.org, Qi Liu <liuqi.16@bytedance.com>
Subject: [PATCH] virtio-gpu-3d: fix abnormal display after a warm reboot
Date: Fri, 18 Sep 2020 19:16:32 +0800	[thread overview]
Message-ID: <20200918111632.37354-1-zhangguoqing.kernel@bytedance.com> (raw)

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>
---
 hw/display/virtio-gpu-3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.24.3 (Apple Git-128)



             reply	other threads:[~2020-09-18 13:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 11:16 Guoqing Zhang [this message]
2020-09-18 13:15 ` [PATCH] virtio-gpu-3d: fix abnormal display after a warm reboot no-reply
2020-09-18 14:18 ` no-reply
2020-09-27 12:17 ` Guoqing Zhang
2020-09-29  7:27   ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200918111632.37354-1-zhangguoqing.kernel@bytedance.com \
    --to=zhangguoqing.kernel@bytedance.com \
    --cc=kraxel@redhat.com \
    --cc=liuqi.16@bytedance.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).