ui/gtk: fix passing y0_top parameter to scanout
PATCH 1/1 ui/gtk: fix passing y0_top parameter to scanout
The dmabuf->y0_top flag is passed to .dpy_gl_scanout_dmabuf(), however in the gtk ui both implementations dropped it when doing the next scanout_texture call.
Fixes flipped linux console using vhost-user-gpu with the gtk ui display.
--- ui/gtk-egl.c | 2 +- ui/gtk-gl-area.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
ui/gtk-egl.c +1 -1
@@ -256,7 +256,7 @@ void gd_egl_scanout_dmabuf(DisplayChangeListener *dcl, }gd_egl_scanout_texture (dcl, dmabuf->texture, - false, dmabuf->width, dmabuf->height, + dmabuf->y0_top, dmabuf->width, dmabuf->height,0 ,0 , dmabuf->width, dmabuf->height);if (dmabuf->allow_fences) {
ui/gtk-gl-area.c +1 -1
@@ -298,7 +298,7 @@ void gd_gl_area_scanout_dmabuf(DisplayChangeListener *dcl, }gd_gl_area_scanout_texture (dcl, dmabuf->texture, - false, dmabuf->width, dmabuf->height, + dmabuf->y0_top, dmabuf->width, dmabuf->height,0 ,0 , dmabuf->width, dmabuf->height);if (dmabuf->allow_fences) {
Signature · 1 line
2.39.2
Quoted 9 lines · Erico Nunes
The
dmabuf->y0_topflag is passed to .dpy_gl_scanout_dmabuf(), however in the gtk ui both implementations dropped it when doing the nextscanout_texturecall.Fixes flipped linux console using vhost-user-gpu with the gtk ui display.
Signed-off-by Erico Nunes <[email protected]>
Quoted 37 lines
--- ui/gtk-egl.c | 2 +- ui/gtk-gl-area.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)ui/gtk-egl.c +1
-1@@ -256,7 +256,7 @@ void gd_egl_scanout_dmabuf(DisplayChangeListener *dcl, }gd_egl_scanout_texture (dcl, dmabuf->texture, - false, dmabuf->width, dmabuf->height, + dmabuf->y0_top, dmabuf->width, dmabuf->height,0 ,0 , dmabuf->width, dmabuf->height);if (dmabuf->allow_fences) {ui/gtk-gl-area.c +1
-1@@ -298,7 +298,7 @@ void gd_gl_area_scanout_dmabuf(DisplayChangeListener *dcl, }gd_gl_area_scanout_texture (dcl, dmabuf->texture, - false, dmabuf->width, dmabuf->height, + dmabuf->y0_top, dmabuf->width, dmabuf->height,0 ,0 , dmabuf->width, dmabuf->height);if (dmabuf->allow_fences) {--
2.39.2
Hello,
Quoted 12 lines · Marc-André Lureau
On Mon, Feb 20, 2023 at 9:56 PM Erico Nunes <[email protected] <mailto:[email protected]>> wrote:
The
dmabuf->y0_topflag is passed to .dpy_gl_scanout_dmabuf(), however in the gtk ui both implementations dropped it when doing the nextscanout_texturecall.Fixes flipped linux console using vhost-user-gpu with the gtk ui display.
Quoted 6 lines
Signed-off-by Erico Nunes <[email protected]<mailto:[email protected]>>
Reviewed-by Marc-André Lureau <[email protected]<mailto:[email protected]>>
Looks like this patch was never applied, could you look at it again please?
Thanks
Erico