Signed-off-by: Tapani Pälli <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82921
---
 .../linker/set-location-to-sampler.shader_test     | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 
tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test

diff --git 
a/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
 
b/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
new file mode 100644
index 0000000..c2716e3
--- /dev/null
+++ 
b/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
@@ -0,0 +1,22 @@
+#
+# Tests that an opaque type (sampler) gets a location succesfully
+#
+[require]
+GL >= 3.3
+GLSL >= 3.30
+GL_ARB_explicit_uniform_location
+
+[vertex shader passthrough]
+
+[fragment shader]
+#version 330
+#extension GL_ARB_explicit_uniform_location: require
+layout(location = 0) uniform sampler2D tex;
+out vec4 color;
+void main()
+{
+       color = texture(tex, vec2(0.0, 0.0));
+}
+
+[test]
+link success
-- 
1.9.3

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to