[Piglit] [PATCH 03/11] gen_builtin_uniform_tests.py: Add extensions to require section

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Thu Nov 5 14:16:41 PST 2015


From: Dylan Baker <baker.dylan.c at gmail.com>

This generator adds required extensions to the shaders, but not the
require section. This patch fixes that.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 generated_tests/gen_builtin_uniform_tests.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py
index 4be2245..69decfe 100644
--- a/generated_tests/gen_builtin_uniform_tests.py
+++ b/generated_tests/gen_builtin_uniform_tests.py
@@ -558,6 +558,8 @@ class ShaderTest(object):
         shader_test = '[require]\n'
         shader_test += 'GLSL >= {0:1.2f}\n'.format(
             float(self.glsl_version()) / 100)
+        for extension in self.extensions():
+            shader_test += 'GL_{}\n'.format(extension)
         shader_test += self.make_additional_requirements()
         shader_test += '\n'
         vs = self.make_vertex_shader()
-- 
2.6.2



More information about the Piglit mailing list