Fix false positives when results are nan in ssbo tests.
authorMika Isojärvi <misojarvi@google.com>
Thu, 28 Jan 2016 18:52:30 +0000 (10:52 -0800)
committerMika Isojärvi <misojarvi@google.com>
Thu, 28 Jan 2016 18:52:30 +0000 (10:52 -0800)
Bug: 26508540
Change-Id: I212db6a2eefc37ffdd64154a5ddbd3f8f401c754

modules/gles31/functional/es31fSSBOLayoutCase.cpp

index b265614..226c9eb 100644 (file)
@@ -1641,7 +1641,7 @@ bool compareComponents (glu::DataType scalarType, const void* ref, const void* r
                        const float             refVal          = *((const float*)ref + ndx);
                        const float             resVal          = *((const float*)res + ndx);
 
-                       if (deFloatAbs(resVal - refVal) >= threshold)
+                       if (!(deFloatAbs(resVal - refVal) <= threshold))
                                return false;
                }
        }