* [PATCH] virtio-gpu: add a FIXME for virtio_gpu_load()
@ 2023-05-15 13:25 marcandre.lureau
2023-05-18 21:35 ` Michael S. Tsirkin
0 siblings, 1 reply; 3+ messages in thread
From: marcandre.lureau @ 2023-05-15 13:25 UTC (permalink / raw)
To: qemu-devel; +Cc: kraxel, Marc-André Lureau, Michael S. Tsirkin
From: Marc-André Lureau <marcandre.lureau@redhat.com>
It looks like the virtio_gpu_load() does not compute and set the offset,
the same way virtio_gpu_set_scanout() does. This probably results in
incorrect display until the scanout/framebuffer is updated again, I
guess we should fix it, although I haven't checked this yet.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
hw/display/virtio-gpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index 66ac9b6cc5..66cddd94d9 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -1289,6 +1289,7 @@ static int virtio_gpu_load(QEMUFile *f, void *opaque, size_t size,
/* load & apply scanout state */
vmstate_load_state(f, &vmstate_virtio_gpu_scanouts, g, 1);
for (i = 0; i < g->parent_obj.conf.max_outputs; i++) {
+ /* FIXME: should take scanout.r.{x,y} into account */
scanout = &g->parent_obj.scanout[i];
if (!scanout->resource_id) {
continue;
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] virtio-gpu: add a FIXME for virtio_gpu_load()
2023-05-15 13:25 [PATCH] virtio-gpu: add a FIXME for virtio_gpu_load() marcandre.lureau
@ 2023-05-18 21:35 ` Michael S. Tsirkin
2023-05-24 10:50 ` Marc-André Lureau
0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2023-05-18 21:35 UTC (permalink / raw)
To: marcandre.lureau; +Cc: qemu-devel, kraxel
On Mon, May 15, 2023 at 05:25:18PM +0400, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> It looks like the virtio_gpu_load() does not compute and set the offset,
> the same way virtio_gpu_set_scanout() does. This probably results in
> incorrect display until the scanout/framebuffer is updated again, I
> guess we should fix it, although I haven't checked this yet.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
I guess it's a way to ping Gerd ;)
Better to just fix it though, no?
> ---
> hw/display/virtio-gpu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
> index 66ac9b6cc5..66cddd94d9 100644
> --- a/hw/display/virtio-gpu.c
> +++ b/hw/display/virtio-gpu.c
> @@ -1289,6 +1289,7 @@ static int virtio_gpu_load(QEMUFile *f, void *opaque, size_t size,
> /* load & apply scanout state */
> vmstate_load_state(f, &vmstate_virtio_gpu_scanouts, g, 1);
> for (i = 0; i < g->parent_obj.conf.max_outputs; i++) {
> + /* FIXME: should take scanout.r.{x,y} into account */
> scanout = &g->parent_obj.scanout[i];
> if (!scanout->resource_id) {
> continue;
> --
> 2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] virtio-gpu: add a FIXME for virtio_gpu_load()
2023-05-18 21:35 ` Michael S. Tsirkin
@ 2023-05-24 10:50 ` Marc-André Lureau
0 siblings, 0 replies; 3+ messages in thread
From: Marc-André Lureau @ 2023-05-24 10:50 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: qemu-devel, kraxel
[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]
Hi Michael
On Fri, May 19, 2023 at 1:35 AM Michael S. Tsirkin <mst@redhat.com> wrote:
> On Mon, May 15, 2023 at 05:25:18PM +0400, marcandre.lureau@redhat.com
> wrote:
> > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> >
> > It looks like the virtio_gpu_load() does not compute and set the offset,
> > the same way virtio_gpu_set_scanout() does. This probably results in
> > incorrect display until the scanout/framebuffer is updated again, I
> > guess we should fix it, although I haven't checked this yet.
> >
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> I guess it's a way to ping Gerd ;)
> Better to just fix it though, no?
>
Indeed, it's just lack of time and priority, and also figure out a good way
to test this.
thanks
> > ---
> > hw/display/virtio-gpu.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
> > index 66ac9b6cc5..66cddd94d9 100644
> > --- a/hw/display/virtio-gpu.c
> > +++ b/hw/display/virtio-gpu.c
> > @@ -1289,6 +1289,7 @@ static int virtio_gpu_load(QEMUFile *f, void
> *opaque, size_t size,
> > /* load & apply scanout state */
> > vmstate_load_state(f, &vmstate_virtio_gpu_scanouts, g, 1);
> > for (i = 0; i < g->parent_obj.conf.max_outputs; i++) {
> > + /* FIXME: should take scanout.r.{x,y} into account */
> > scanout = &g->parent_obj.scanout[i];
> > if (!scanout->resource_id) {
> > continue;
> > --
> > 2.40.1
>
>
>
--
Marc-André Lureau
[-- Attachment #2: Type: text/html, Size: 2592 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-24 10:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-15 13:25 [PATCH] virtio-gpu: add a FIXME for virtio_gpu_load() marcandre.lureau
2023-05-18 21:35 ` Michael S. Tsirkin
2023-05-24 10:50 ` Marc-André Lureau
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).