All of lore.kernel.org
 help / color / mirror / Atom feed
From: marcandre.lureau@redhat.com
To: qemu-devel@nongnu.org
Cc: "Markus Armbruster" <armbru@redhat.com>,
	berrange@redhat.com, "Eric Blake" <eblake@redhat.com>,
	"Stefan Weil" <sw@weilnetz.de>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Pavel Dovgalyuk" <pavel.dovgaluk@ispras.ru>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Erico Nunes" <ernunes@redhat.com>
Subject: [PULL 01/19] ui/gtk: fix passing y0_top parameter to scanout
Date: Sun, 28 May 2023 17:19:58 +0400	[thread overview]
Message-ID: <20230528132016.3218152-2-marcandre.lureau@redhat.com> (raw)
In-Reply-To: <20230528132016.3218152-1-marcandre.lureau@redhat.com>

From: Erico Nunes <ernunes@redhat.com>

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.

Signed-off-by: Erico Nunes <ernunes@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230220175605.43759-1-ernunes@redhat.com>
---
 ui/gtk-egl.c     | 2 +-
 ui/gtk-gl-area.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c
index e84431790c..557668e418 100644
--- a/ui/gtk-egl.c
+++ b/ui/gtk-egl.c
@@ -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) {
diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
index 7696df1f6b..c384a1516b 100644
--- a/ui/gtk-gl-area.c
+++ b/ui/gtk-gl-area.c
@@ -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.40.1



  reply	other threads:[~2023-05-28 13:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-28 13:19 [PULL 00/19] Ui patches marcandre.lureau
2023-05-28 13:19 ` marcandre.lureau [this message]
2023-05-28 13:19 ` [PULL 02/19] ui/gtk: use widget size for cursor motion event marcandre.lureau
2023-05-28 13:20 ` [PULL 03/19] ui/gtk-egl: fix scaling for cursor position in scanout mode marcandre.lureau
2023-05-28 13:20 ` [PULL 04/19] ui/sdl2: fix surface_gl_update_texture: Assertion 'gls' failed marcandre.lureau
2023-05-28 13:20 ` [PULL 05/19] ui/dbus: fix compilation when GBM && !OPENGL marcandre.lureau
2023-05-28 13:20 ` [PULL 06/19] win32: wrap socket close() with an exception handler marcandre.lureau
2023-05-28 13:20 ` [PULL 07/19] virtio-gpu: add a FIXME for virtio_gpu_load() marcandre.lureau
2023-05-28 13:20 ` [PULL 08/19] gtk: add gl-area support on win32 marcandre.lureau
2023-05-28 13:20 ` [PULL 09/19] ui/dbus: add a FIXME about texture/dmabuf scanout handling marcandre.lureau
2023-05-28 13:20 ` [PULL 10/19] ui/sdl2: Grab Alt+Tab also in fullscreen mode marcandre.lureau
2023-05-28 13:20 ` [PULL 11/19] ui/sdl2: Grab Alt+F4 also under Windows marcandre.lureau
2023-05-28 13:20 ` [PULL 12/19] ui/sdl2: disable SDL_HINT_GRAB_KEYBOARD on Windows marcandre.lureau
2023-05-28 13:20 ` [PULL 13/19] ui/cursor: make width/height unsigned 16-bit integer marcandre.lureau
2023-05-28 13:20 ` [PULL 14/19] virtio-input: generalize virtio_input_key_config() marcandre.lureau
2023-05-28 13:20 ` [PULL 15/19] ui: add the infrastructure to support MT events marcandre.lureau
2023-05-28 13:20 ` [PULL 16/19] virtio-input: add a virtio-mulitouch device marcandre.lureau
2023-05-28 13:20 ` [PULL 17/19] virtio-input-pci: add virtio-multitouch-pci marcandre.lureau
2023-05-28 13:20 ` [PULL 18/19] ui: add helpers for virtio-multitouch events marcandre.lureau
2023-05-28 13:20 ` [PULL 19/19] ui/gtk: enable backend to send multi-touch events marcandre.lureau
2023-05-28 17:43 ` [PULL 00/19] Ui patches Michael Tokarev
2023-05-29 21:29 ` Richard Henderson

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=20230528132016.3218152-2-marcandre.lureau@redhat.com \
    --to=marcandre.lureau@redhat.com \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=ernunes@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=pavel.dovgaluk@ispras.ru \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.