diff mbox

[2/3] arb_arrays_of_arrays: fix vs decrement atomic counter test

Message ID 1438517096-3686-2-git-send-email-t_arceri@yahoo.com.au
State New
Headers show

Commit Message

'Timothy Arceri' via Patchwork Forward Aug. 2, 2015, 12:04 p.m. UTC
---
 .../atomic_counters/vs-simple-inc-dec-read.shader_test        | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test b/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test
index a3df129..68f064e 100644
--- a/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test
+++ b/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test
@@ -52,6 +52,12 @@  void main()
 	   v1[6] <= v0[6] && v1[7] != v0[7])
 		passed = false;
 
+	/* Skip one decrement since it may be the 0 => 0xffffffff
+	 * transition.
+	 */
+	atomicCounterDecrement(a1[0][1][1]);
+	atomicCounterDecrement(a1[2][0][1]);
+
 	/* Get all initail values of a1 */
 	v0[0] = atomicCounter(a1[0][0][0]);
 	v0[1] = atomicCounter(a1[0][0][1]);
@@ -66,11 +72,6 @@  void main()
 	v0[10] = atomicCounter(a1[2][0][1]);
 	v0[11] = atomicCounter(a1[2][1][0]);
 
-	/* Skip one decrement since it may be the 0 => 0xffffffff
-	 * transition.
-	 */
-	atomicCounterDecrement(a1[2][0][1]);
-
 	/* Test that a decrement of an atomic
 	 * counter results in a smaller value.
 	 * Also test that all other array elements are unaffected.