All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] gtk: fix build
@ 2016-07-07  7:29 Gerd Hoffmann
  2016-07-11 10:15 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2016-07-07  7:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Commit "9d8256e virgl: pass whole GL scanout dimensions" missed the
opengl code path for gtk versions >= 3.16.  Update that one too and
fix the build with recent gtk versions.

Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 include/ui/gtk.h | 1 +
 ui/gtk-gl-area.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/ui/gtk.h b/include/ui/gtk.h
index a764404..42ca0fe 100644
--- a/include/ui/gtk.h
+++ b/include/ui/gtk.h
@@ -124,6 +124,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl,
                                 QEMUGLContext ctx);
 void gd_gl_area_scanout(DisplayChangeListener *dcl,
                         uint32_t backing_id, bool backing_y_0_top,
+                        uint32_t backing_width, uint32_t backing_height,
                         uint32_t x, uint32_t y,
                         uint32_t w, uint32_t h);
 void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
index b86ff3c..0df5a36 100644
--- a/ui/gtk-gl-area.c
+++ b/ui/gtk-gl-area.c
@@ -169,6 +169,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx)
 
 void gd_gl_area_scanout(DisplayChangeListener *dcl,
                         uint32_t backing_id, bool backing_y_0_top,
+                        uint32_t backing_width, uint32_t backing_height,
                         uint32_t x, uint32_t y,
                         uint32_t w, uint32_t h)
 {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] gtk: fix build
  2016-07-07  7:29 [Qemu-devel] [PATCH] gtk: fix build Gerd Hoffmann
@ 2016-07-11 10:15 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2016-07-11 10:15 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: QEMU Developers

On 7 July 2016 at 08:29, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Commit "9d8256e virgl: pass whole GL scanout dimensions" missed the
> opengl code path for gtk versions >= 3.16.  Update that one too and
> fix the build with recent gtk versions.
>
> Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  include/ui/gtk.h | 1 +
>  ui/gtk-gl-area.c | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/include/ui/gtk.h b/include/ui/gtk.h
> index a764404..42ca0fe 100644
> --- a/include/ui/gtk.h
> +++ b/include/ui/gtk.h
> @@ -124,6 +124,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl,
>                                  QEMUGLContext ctx);
>  void gd_gl_area_scanout(DisplayChangeListener *dcl,
>                          uint32_t backing_id, bool backing_y_0_top,
> +                        uint32_t backing_width, uint32_t backing_height,
>                          uint32_t x, uint32_t y,
>                          uint32_t w, uint32_t h);
>  void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
> diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
> index b86ff3c..0df5a36 100644
> --- a/ui/gtk-gl-area.c
> +++ b/ui/gtk-gl-area.c
> @@ -169,6 +169,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx)
>
>  void gd_gl_area_scanout(DisplayChangeListener *dcl,
>                          uint32_t backing_id, bool backing_y_0_top,
> +                        uint32_t backing_width, uint32_t backing_height,
>                          uint32_t x, uint32_t y,
>                          uint32_t w, uint32_t h)
>  {
> --
> 1.8.3.1

Thanks; applied to master as a build fix.

-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-11 10:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07  7:29 [Qemu-devel] [PATCH] gtk: fix build Gerd Hoffmann
2016-07-11 10:15 ` Peter Maydell

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.