From f7e96bcdb2b5f0ca897c3436a10acd61bf99d8d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Wed, 24 Jun 2015 14:21:06 -0700 Subject: [PATCH] Fix intThresholdPositionDeviationCompare with acceptOutOfBoundsAsAnyValue = false. Bug: 22010138 Change-Id: I76a85f02324d1b2c0c98cabbb484623dbd3d6b07 --- framework/common/tcuImageCompare.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/common/tcuImageCompare.cpp b/framework/common/tcuImageCompare.cpp index beb571de1..469b095c1 100644 --- a/framework/common/tcuImageCompare.cpp +++ b/framework/common/tcuImageCompare.cpp @@ -101,9 +101,9 @@ static int findNumPositionDeviationFailingPixels (const PixelBufferAccess& error const int beginX = (acceptOutOfBoundsAsAnyValue) ? (maxPositionDeviation.x()) : (0); const int beginY = (acceptOutOfBoundsAsAnyValue) ? (maxPositionDeviation.y()) : (0); const int beginZ = (acceptOutOfBoundsAsAnyValue) ? (maxPositionDeviation.z()) : (0); - const int endX = (acceptOutOfBoundsAsAnyValue) ? (width - maxPositionDeviation.x()) : (0); - const int endY = (acceptOutOfBoundsAsAnyValue) ? (height - maxPositionDeviation.y()) : (0); - const int endZ = (acceptOutOfBoundsAsAnyValue) ? (depth - maxPositionDeviation.z()) : (0); + const int endX = (acceptOutOfBoundsAsAnyValue) ? (width - maxPositionDeviation.x()) : (width); + const int endY = (acceptOutOfBoundsAsAnyValue) ? (height - maxPositionDeviation.y()) : (height); + const int endZ = (acceptOutOfBoundsAsAnyValue) ? (depth - maxPositionDeviation.z()) : (depth); TCU_CHECK_INTERNAL(result.getWidth() == width && result.getHeight() == height && result.getDepth() == depth); -- 2.34.1