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

Timothy Arceri t_arceri at yahoo.com.au
Sun Aug 2 05:04:55 PDT 2015


---
 .../atomic_counters/vs-simple-inc-dec-read.shader_test        | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

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.
-- 
2.4.3



More information about the Piglit mailing list