Re: [PATCH spice-gtk v2 6/8] egl: check and update scanout after egl init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

----- Original Message -----
> Hi,
> 
> On Tue, 2016-03-22 at 13:57 +0100, Marc-André Lureau wrote:
> > Once the egl/GL context are initialized, check if there is a scanout
> > to
> > associate to display widget. This solves races when scanout update is
> > happening before the egl/GL context is ready.
> > 
> Is it common that the display channel has the scanout before the widget
> is initialized ? What about adding a debug when it happens?

Let say it is not uncommon ;) Sure let's have a debug message there.

> 
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
> > ---
> >  src/spice-widget-egl.c | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
> > index 8ac3b90..d6f436d 100644
> > --- a/src/spice-widget-egl.c
> > +++ b/src/spice-widget-egl.c
> > @@ -273,6 +273,11 @@ end:
> >  
> >      d->egl.context_ready = TRUE;
> >  
> > +    if (spice_display_get_gl_scanout(SPICE_DISPLAY_CHANNEL(d-
> > >display))) {
> I prefer explicit comparison to NULL
> > +        spice_display_widget_gl_scanout(display);
> > +        spice_display_widget_update_monitor_area(display);
> > +    }
> > +
> >      return TRUE;
> >  }
> >  
> 
> Thanks,
> Pavel
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]