ui/gtk-gl-area: Remove extra draw call in refresh
PATCH 1/1 ui/gtk-gl-area: Remove extra draw call in refresh
From: Dongwon Kim <[email protected]>
This partially reverts commit 77bf310084dad38b3a2badf01766c659056f1cf2 which causes some guest display corruption when gtk-gl-area is used for GTK rendering (e.g. Wayland Compositor) possibly due to simulataneous accesses on the guest frame buffer by host compositor and the guest.
--- ui/gtk-gl-area.c | 1 - 1 file changed, 1 deletion(-)
ui/gtk-gl-area.c +0 -1
@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)if (vc->gfx.guest_fb.dmabuf &&qemu_dmabuf_get_draw_submitted (vc->gfx.guest_fb.dmabuf)) { -gd_gl_area_draw (vc);return ; }
Signature · 1 line
2.34.1
Quoted 8 lines · [email protected] writes:
From: Dongwon Kim <[email protected]>
This partially reverts commit
77bf310084dad38b3a2badf01766c659056f1cf2which causes some guest display corruption when gtk-gl-area is used for GTK rendering (e.g. Wayland Compositor) possibly due to simulataneous accesses on the guest frame buffer by host compositor and the guest.
Quoted 5 lines
Reported-by Dmitry Osipenko <[email protected]>Reported-by Alex Bennée <[email protected]>Cc Marc-André Lureau <[email protected]>Cc Vivek Kasireddy <[email protected]>Signed-off-by Dongwon Kim <[email protected]>
This certainly fixes the corruption I was seeing while testing Dimitry's native context patches and doesn't seem to affect the venus test modes.
So:
Quoted 15 lines
--- ui/gtk-gl-area.c | 1 - 1 file changed, 1 deletion(-)ui/gtk-gl-area.c +0
-1@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)if (vc->gfx.guest_fb.dmabuf &&qemu_dmabuf_get_draw_submitted (vc->gfx.guest_fb.dmabuf)) { -gd_gl_area_draw (vc);return ; }
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 34 lines · Alex Bennée
Quoted 8 lines · [email protected] writes:
From: Dongwon Kim <[email protected]>
This partially reverts commit
77bf310084dad38b3a2badf01766c659056f1cf2which causes some guest display corruption when gtk-gl-area is used for GTK rendering (e.g. Wayland Compositor) possibly due to simulataneous accesses on the guest frame buffer by host compositor and the guest.Quoted 5 lines
Reported-by Dmitry Osipenko <[email protected]>Reported-by Alex Bennée <[email protected]>Cc Marc-André Lureau <[email protected]>Cc Vivek Kasireddy <[email protected]>Signed-off-by Dongwon Kim <[email protected]>This certainly fixes the corruption I was seeing while testing Dimitry's native context patches and doesn't seem to affect the venus test modes.
So:
Tested-by Alex Bennée <[email protected]>Reviewed-by Alex Bennée <[email protected]>Quoted 10 lines
--- ui/gtk-gl-area.c | 1 - 1 file changed, 1 deletion(-)ui/gtk-gl-area.c +0
-0@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)
Quoted 6 lines
ui/gtk-gl-area.c void gd_gl_area_refresh(DisplayChangeListener *dcl) · line 133
Quoted 5 lines
ui/gtk-gl-area.c +0
-1if (vc->gfx.guest_fb.dmabuf &&qemu_dmabuf_get_draw_submitted (vc->gfx.guest_fb.dmabuf)) { -gd_gl_area_draw (vc);return ; }
Signature · 2 lines
Best regards, Dmitry
Quoted 42 lines · Dmitry Osipenko
Quoted 34 lines · Alex Bennée
Quoted 8 lines · [email protected] writes:
From: Dongwon Kim <[email protected]>
This partially reverts commit
77bf310084dad38b3a2badf01766c659056f1cf2which causes some guest display corruption when gtk-gl-area is used for GTK rendering (e.g. Wayland Compositor) possibly due to simulataneous accesses on the guest frame buffer by host compositor and the guest.Quoted 5 lines
Reported-by Dmitry Osipenko <[email protected]>Reported-by Alex Bennée <[email protected]>Cc Marc-André Lureau <[email protected]>Cc Vivek Kasireddy <[email protected]>Signed-off-by Dongwon Kim <[email protected]>This certainly fixes the corruption I was seeing while testing Dimitry's native context patches and doesn't seem to affect the venus test modes.
So:
Tested-by Alex Bennée <[email protected]>Reviewed-by Alex Bennée <[email protected]>Quoted 10 lines
--- ui/gtk-gl-area.c | 1 - 1 file changed, 1 deletion(-)ui/gtk-gl-area.c +0
-0@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)Quoted 6 lines
ui/gtk-gl-area.c void gd_gl_area_refresh(DisplayChangeListener *dcl) · line 133
Quoted 5 lines
ui/gtk-gl-area.c +0
-1if (vc->gfx.guest_fb.dmabuf &&qemu_dmabuf_get_draw_submitted (vc->gfx.guest_fb.dmabuf)) { -gd_gl_area_draw (vc);return ; }
Quoted 2 lines
Reviewed-by Dmitry Osipenko <[email protected]>Tested-by Dmitry Osipenko <[email protected]>
I now noticed that the fixes tag is missing in the commit message. It should be added as described in [1]. Also, use the get_maintainers.pl script to CC all interested people. Submitting patches to QEMU works same like in Linux kernel.
[1] https://www.qemu.org/docs/master/devel/submitting-a-patch.html
Signature · 2 lines
Best regards, Dmitry
PATCH v2 1/1 ui/gtk-gl-area: Remove extra draw call in refresh
In reply to [email protected]From: Dongwon Kim <[email protected]>
This partially reverts commit 77bf310084dad38b3a2badf01766c659056f1cf2 which causes some guest display corruption when gtk-gl-area is used for GTK rendering (e.g. Wayland Compositor) possibly due to simulataneous accesses on the guest frame buffer by host compositor and the guest.
v2: Added "Fixes" tag
--- ui/gtk-gl-area.c | 1 - 1 file changed, 1 deletion(-)
ui/gtk-gl-area.c +0 -1
@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)if (vc->gfx.guest_fb.dmabuf &&qemu_dmabuf_get_draw_submitted (vc->gfx.guest_fb.dmabuf)) { -gd_gl_area_draw (vc);return ; }
Signature · 1 line
2.34.1
Alex Bennée
AppliedQuoted 8 lines · [email protected] writes:
From: Dongwon Kim <[email protected]>
This partially reverts commit
77bf310084dad38b3a2badf01766c659056f1cf2which causes some guest display corruption when gtk-gl-area is used for GTK rendering (e.g. Wayland Compositor) possibly due to simulataneous accesses on the guest frame buffer by host compositor and the guest.
btw in future keep v2 etc bellow the --- so the tooling can prune it when applying.
Quoted 1 line
v2: Added "Fixes" tag
Queued to virtio-gpu/next, thanks.
Quoted 26 lines
Fixes 77bf310084 ("ui/gtk: Draw guest frame at refresh cycle")Reported-by Dmitry Osipenko <[email protected]>Reported-by Alex Bennée <[email protected]>Tested-by Alex Bennée <[email protected]>Tested-by Dmitry Osipenko <[email protected]>Reviewed-by Alex Bennée <[email protected]>Reviewed-by Dmitry Osipenko <[email protected]>Cc Marc-André Lureau <[email protected]>Cc Vivek Kasireddy <[email protected]>Signed-off-by Dongwon Kim <[email protected]>--- ui/gtk-gl-area.c | 1 - 1 file changed, 1 deletion(-)ui/gtk-gl-area.c +0
-1@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)if (vc->gfx.guest_fb.dmabuf &&qemu_dmabuf_get_draw_submitted (vc->gfx.guest_fb.dmabuf)) { -gd_gl_area_draw (vc);return ; }
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro