[Piglit] [PATCH] framework/wflinfo: use x11_egl for gles with mixed_glx_egl

Dylan Baker dylan at pnwbakers.com
Fri Oct 5 16:06:07 UTC 2018


Quoting Eric Engestrom (2018-10-05 08:22:38)
> On Thursday, 2018-10-04 11:28:22 -0700, Dylan Baker wrote:
> > Because wflinfo returns GL legacy (non-profile) for gles on glx.
> > ---
> >  framework/wflinfo.py | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/framework/wflinfo.py b/framework/wflinfo.py
> > index a568bc344..eb75e8514 100644
> > --- a/framework/wflinfo.py
> > +++ b/framework/wflinfo.py
> > @@ -103,7 +103,13 @@ class WflInfo(object):
> >                  # to something that wflinfo understands.
> >                  platform = OPTIONS.env['PIGLIT_PLATFORM']
> >                  if platform == "mixed_glx_egl":
> > -                    platform = "glx"
> > +                    if 'gles2' in opts or 'gles3'in opts:
> Missing space                                ~~~~~~~^
> 
> > +                        platform = "x11_egl"
> > +                    else:
> > +                        platform = "glx"
> > +                if platform == 'glx' and 'gles2' in opts or 'gles3' in opts:
> > +                    # There is a wflinfo bug, which makes
> 
> Unfinished sentence?

Apparently :)

Now that I think about it this patch isn't complete either. Actually, if we hit
this bug we need to alter the behavior of the fast-skipper so that it doesn't
fast skip when it doesn't have valid data.

Or not, apparently waffle just does the wrong thing with GLES on GLX.

> > +                    raise StopWflinfo('Called')
> >  
> >                  if sys.platform in ['windows', 'cygwin']:
> >                      bin = 'wflinfo.exe'
> > -- 
> > 2.19.0
> > 
> > _______________________________________________
> > Piglit mailing list
> > Piglit at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20181005/21a4abbc/attachment.sig>


More information about the Piglit mailing list