[Piglit] [PATCH v2 2/7] framework/shader_test: GL_NUM_PROGRAM_BINARY_FORMATS >= 1 is not an extension

Dylan Baker dylan at pnwbakers.com
Tue Jul 10 17:42:09 UTC 2018


So don't treat it like one. Stops one test from being fast-skipped that
shouldn't be.
---
 framework/test/shader_test.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py
index 719b92f9d..e0124b410 100644
--- a/framework/test/shader_test.py
+++ b/framework/test/shader_test.py
@@ -85,8 +85,10 @@ class Parser(object):
                     "In file {}: Config block not found".format(self.filename))
 
         for line in lines:
-            if line.startswith('GL_') and not line.startswith('GL_MAX'):
-                self.gl_required.add(line.strip())
+            if line.startswith('GL_'):
+                line = line.strip()
+                if not (line.startswith('GL_MAX') or line.startswith('GL_NUM')):
+                    self.extensions.add(line)
                 continue
 
             # Find any GLES requirements.
-- 
2.18.0



More information about the Piglit mailing list