From: Dave Airlie <airl...@redhat.com>

Just does a basic test to check the compiler can handle textureSize from
GLSL 1.30.

Signed-off-by: Dave Airlie <airl...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to