continue;
}
+ // Reference result is known to be a valid result, we can
+ // skip verification if thes results are equal
+ if (resPix.x() != refPix.x())
{
const float wx = (float)px + 0.5f;
const float wy = (float)py + 0.5f;
const tcu::Vec4 resPix = result.getPixel(px, py);
const tcu::Vec4 refPix = reference.getPixel(px, py);
+ // Other channels should trivially match to reference.
if (!tcu::boolAll(tcu::lessThanEqual(tcu::abs(refPix.swizzle(1,2,3) - resPix.swizzle(1,2,3)), nonShadowThreshold)))
{
errorMask.setPixel(tcu::RGBA::red.toVec(), px, py);
continue;
}
+ // Reference result is known to be a valid result, we can
+ // skip verification if thes results are equal
+ if (resPix.x() != refPix.x())
{
const float wx = (float)px + 0.5f;
const float wy = (float)py + 0.5f;
const tcu::Vec4 resPix = result.getPixel(px, py);
const tcu::Vec4 refPix = reference.getPixel(px, py);
+ // Other channels should trivially match to reference.
if (!tcu::boolAll(tcu::lessThanEqual(tcu::abs(refPix.swizzle(1,2,3) - resPix.swizzle(1,2,3)), nonShadowThreshold)))
{
errorMask.setPixel(tcu::RGBA::red.toVec(), px, py);
continue;
}
+ // Reference result is known to be a valid result, we can
+ // skip verification if thes results are equal
+ if (resPix.x() != refPix.x())
{
const float wx = (float)px + 0.5f;
const float wy = (float)py + 0.5f;