[Piglit] [PATCH] framework/wflinfo: use x11_egl for gles with mixed_glx_egl
Dylan Baker
dylan at pnwbakers.com
Thu Oct 4 18:28:22 UTC 2018
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:
+ platform = "x11_egl"
+ else:
+ platform = "glx"
+ if platform == 'glx' and 'gles2' in opts or 'gles3' in opts:
+ # There is a wflinfo bug, which makes
+ raise StopWflinfo('Called')
if sys.platform in ['windows', 'cygwin']:
bin = 'wflinfo.exe'
--
2.19.0
More information about the Piglit
mailing list