Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ui/gtk: set the area of the scanout texture correctly
x and y offsets and width and height of the scanout texture
is not correctly configured in case guest scanout frame is
dmabuf.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Message-ID: <20230621213150.29573-1-dongwon.kim@intel.com>
(cherry picked from commit 37802a2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
downor authored and Michael Tokarev committed Jul 2, 2023
1 parent 3b1b9aa commit 5cc60b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ui/gtk-egl.c
Expand Up @@ -257,7 +257,8 @@ void gd_egl_scanout_dmabuf(DisplayChangeListener *dcl,

gd_egl_scanout_texture(dcl, dmabuf->texture,
dmabuf->y0_top, dmabuf->width, dmabuf->height,
0, 0, dmabuf->width, dmabuf->height);
dmabuf->x, dmabuf->y, dmabuf->scanout_width,
dmabuf->scanout_height);

if (dmabuf->allow_fences) {
vc->gfx.guest_fb.dmabuf = dmabuf;
Expand Down
3 changes: 2 additions & 1 deletion ui/gtk-gl-area.c
Expand Up @@ -299,7 +299,8 @@ void gd_gl_area_scanout_dmabuf(DisplayChangeListener *dcl,

gd_gl_area_scanout_texture(dcl, dmabuf->texture,
dmabuf->y0_top, dmabuf->width, dmabuf->height,
0, 0, dmabuf->width, dmabuf->height);
dmabuf->x, dmabuf->y, dmabuf->scanout_width,
dmabuf->scanout_height);

if (dmabuf->allow_fences) {
vc->gfx.guest_fb.dmabuf = dmabuf;
Expand Down

0 comments on commit 5cc60b6

Please sign in to comment.