Limit changes by xor to upper 8 bits in mixed atomic tests
authorMika Isojärvi <misojarvi@google.com>
Wed, 16 Nov 2016 23:10:29 +0000 (15:10 -0800)
committerMika Isojarvi <misojarvi@google.com>
Tue, 24 Jan 2017 23:33:03 +0000 (23:33 +0000)
Bug: 31270281
Test: Ran tests on multiple devices
Change-Id: I64393591171b304cd071f7a37b91efd2c7a853a6

modules/gles31/functional/es31fSynchronizationTests.cpp

index d84b6cb..c07181f 100644 (file)
@@ -3101,7 +3101,7 @@ std::string ConcurrentSSBOAtomicCounterMixedCase::genSSBOComputeSource (void) co
                << "void main ()\n"
                << "{\n"
                << "    // flip high bits\n"
-               << "    highp uint mask = uint(1) << (16u + (gl_GlobalInvocationID.x % 16u));\n"
+               << "    highp uint mask = uint(1) << (24u + (gl_GlobalInvocationID.x % 8u));\n"
                << "    sb_work.dummy = atomicXor(sb_work.targetValue, mask);\n"
                << "}";