[Piglit] [PATCH 02/11] arb_shading_language_420pack: Add UTF-8 test.

Matt Turner mattst88 at gmail.com
Fri May 24 18:27:59 PDT 2013


---
 .../compiler/utf8.frag                             | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/utf8.frag

diff --git a/tests/spec/arb_shading_language_420pack/compiler/utf8.frag b/tests/spec/arb_shading_language_420pack/compiler/utf8.frag
new file mode 100644
index 0000000..f320816
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/utf8.frag
@@ -0,0 +1,33 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * equire_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ */
+
+/*
+ * The ARB_shading_language_420pack says:
+ *
+ *    "* Change from ASCII to UTF-8 for the language character set and also
+ *       allow any characters inside comments."
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+
+/* Testing UTF-8 characters in comments:
+ *
+ *	§ ¢ £ ® © ± ¹ ² ³ ·
+ *	à á â ã ä å
+ *	æ ç
+ *	è é ê ë
+ *	ì í î ï
+ *	ð ñ
+ *	ò ó ô õ ö
+ *	ù ú û ü
+ */
+
+uniform vec4 foo;
+
+void main() {
+	gl_FragColor = foo;
+}
-- 
1.8.1.5



More information about the Piglit mailing list