[06/15] shader_tests: move input/output declarations above functions

Submitted by Marek Olšák on March 26, 2018, 11:32 p.m.

Details

Message ID 20180326233255.18529-6-maraeo@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Marek Olšák March 26, 2018, 11:32 p.m.
From: Nicolai Hähnle <nicolai.haehnle@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(-)

Patch hide | download patch | download mbox

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()