[Piglit] [PATCH] Add a GLSL ES 3.00 compiler test for chained qualifiers.

Kenneth Graunke kenneth at whitecape.org
Wed Feb 5 21:42:06 PST 2014


Mesa had a bug where using an "auxiliary storage qualifier" (to use the
420pack terminology) such as "centroid" would lose any precision
qualifiers.

This simple test trips that bug.

Reported-by: Kevin Rogovin <kevin.rogovin at intel.com>
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 tests/spec/glsl-es-3.00/compiler/aux-storage-precision.frag | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 tests/spec/glsl-es-3.00/compiler/aux-storage-precision.frag

diff --git a/tests/spec/glsl-es-3.00/compiler/aux-storage-precision.frag b/tests/spec/glsl-es-3.00/compiler/aux-storage-precision.frag
new file mode 100644
index 0000000..1960fbb
--- /dev/null
+++ b/tests/spec/glsl-es-3.00/compiler/aux-storage-precision.frag
@@ -0,0 +1,7 @@
+// [config]
+// expect_result: pass
+// glsl_version: 3.00
+// [end config]
+
+#version 300 es
+centroid in mediump vec2 foo;
-- 
1.8.5.2



More information about the Piglit mailing list