[Piglit] [PATCH 1/7] arb_gpu_shader5/invocation-id-basic: use signed int

Jordan Justen jordan.l.justen at intel.com
Thu Jan 23 23:55:06 PST 2014


gl_InvocationID is defined as an int.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 Patch series is available at:
 git://people.freedesktop.org/~jljusten/piglit gs-inv-id

 .../spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test b/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test
index bd516e5..1169cfb 100644
--- a/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test
+++ b/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test
@@ -25,11 +25,11 @@ void emit(vec2 v2)
 
 void main()
 {
-  uint i = gl_InvocationID;
+  int i = gl_InvocationID;
 
   vec2 v;
-  v.x = -1.0 + float(i & 1u);
-  v.y = -1.0 + float((i & 2u) / 2u);
+  v.x = -1.0 + float(i & 1);
+  v.y = -1.0 + float((i & 2) / 2);
 
   emit(v);
   emit(v + vec2(1, 0));
-- 
1.8.5.3



More information about the Piglit mailing list