Lines Matching defs:reference

1104 //! An ImageLayerVerifier that simply compares the result slice to a slice in a reference image.
1105 //! \note Holds the reference image as a reference (no pun intended) instead of a copy; caller must be aware of lifetime issues.
1109 ImageLayerComparer (const LayeredImage& reference,
1111 : m_reference (reference)
1112 , m_relevantRegion (relevantRegion.x() > 0 && relevantRegion.y() > 0 ? relevantRegion : reference.getSize().swizzle(0, 1))
1277 // Create reference, read texture and compare to reference.
1280 LayeredImage reference (m_textureType, m_format, imageSize.x(), imageSize.y(), imageSize.z());
1291 reference.setPixel(x, y, z, color);
1293 reference.setPixel(x, y, z, color.asFloat()*storeColorScale + storeColorBias);
1296 const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_textureType, m_format, imageSize, ImageLayerComparer(reference));
1404 LayeredImage reference (m_textureType, m_textureFormat, imageSize.x(), imageSize.y(), imageSize.z());
1414 // First, fill reference with (a fairly arbitrary) initial pattern. This will be used as texture upload source data as well as for actual reference computation later on.
1425 reference.setPixel(x, y, z, color);
1427 reference.setPixel(x, y, z, color.asFloat()*storeColorScale + storeColorBias);
1432 replaceBadFloatReinterpretValues<TextureFormat::HALF_FLOAT, tcu::Float16, deUint16>(reference, m_imageFormat);
1434 replaceBadFloatReinterpretValues<TextureFormat::FLOAT, tcu::Float32, deUint32>(reference, m_imageFormat);
1444 uploadTexture(glLog, reference, *texture0Buf);
1453 // Perform image loads and stores in compute shader and finalize reference computation.
1531 // Finalize reference.
1544 const PixelBufferAccess sliceAccess = m_textureType == TEXTURETYPE_CUBE ? reference.getCubeFaceAccess((tcu::CubeFace)z) : reference.getSliceAccess(z);
1571 const UVec4 temp = reference.getPixelUint(imageSize.x()-1-x, y, z);
1572 reference.setPixel(imageSize.x()-1-x, y, z, reference.getPixelUint(x, y, z));
1573 reference.setPixel(x, y, z, temp);
1577 const Vec4 temp = reference.getPixel(imageSize.x()-1-x, y, z);
1578 reference.setPixel(imageSize.x()-1-x, y, z, reference.getPixel(x, y, z));
1579 reference.setPixel(x, y, z, temp);
1584 // Read texture 1 and compare to reference.
1586 const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture1, *texture1Buf, m_textureType, m_textureFormat, imageSize, ImageLayerComparer(reference));
1778 int reference = getOperationInitialValue(m_operation);
1781 reference = computeBinaryAtomicOperationResult(m_operation, reference, atomicArgs[i]);
1783 if (result.i != reference)
1788 << TestLog::Message << "// Note: reference value is " << reference << TestLog::EndMessage;
2059 // Perform image stores in compute shader and finalize reference computation.
2546 // Create reference, read texture and compare.
2750 // Create reference, read texture and compare.
2753 LayeredImage reference(m_imageType, m_format, imageSize.x(), imageSize.y(), imageSize.z());
2775 reference.setPixel(x, y, z, IVec4(sum));
2779 if (readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_imageType, m_format, imageSize, ImageLayerComparer(reference)))
2941 // Read texture and compare to reference.