[Piglit] [PATCH 06/15] shader_tests: move input/output declarations above functions
Marek Olšák
maraeo at gmail.com
Mon Mar 26 23:32:46 UTC 2018
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
The SPIRV conversion script gets confused otherwise.
---
tests/shaders/glsl-vs-max-array-access-function.shader_test | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/shaders/glsl-vs-max-array-access-function.shader_test b/tests/shaders/glsl-vs-max-array-access-function.shader_test
index bf92f5532..dee54548b 100644
--- a/tests/shaders/glsl-vs-max-array-access-function.shader_test
+++ b/tests/shaders/glsl-vs-max-array-access-function.shader_test
@@ -1,23 +1,23 @@
[require]
GLSL >= 1.10
[vertex shader]
uniform float a[3];
+varying vec4 color;
+
float func(float array[3])
{
return array[2];
}
-varying vec4 color;
-
void main()
{
gl_Position = gl_Vertex;
color = vec4(func(a), vec3(1.0));
}
[fragment shader]
varying vec4 color;
void main()
--
2.15.1
More information about the Piglit
mailing list