[Piglit] [PATCH] glsl-1.30: add compiler test for textureSize.
Dave Airlie
airlied at gmail.com
Sun Jun 19 01:23:21 PDT 2011
From: Dave Airlie <airlied at redhat.com>
Just does a basic test to check the compiler can handle textureSize from
GLSL 1.30.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
.../glsl-1.30/compiler/texture/textureSize.frag | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
create mode 100644 tests/spec/glsl-1.30/compiler/texture/textureSize.frag
diff --git a/tests/spec/glsl-1.30/compiler/texture/textureSize.frag b/tests/spec/glsl-1.30/compiler/texture/textureSize.frag
new file mode 100644
index 0000000..15e4fd5
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/texture/textureSize.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.30
+// [end_config]
+
+#version 130
+
+uniform sampler2D a;
+int i() {
+ ivec2 x;
+
+ x = textureSize(a, 0);
+ return x.x;
+}
--
1.7.5.4
More information about the Piglit
mailing list