Home | History | Annotate | Download | only in functional

Lines Matching full:offsets

496 // Whether offsets correspond to the sample offsets used with plain textureGather().
497 static inline bool isZeroOffsetOffsets (const IVec2 (&offsets)[4])
501 return std::equal(DE_ARRAY_BEGIN(offsets),
502 DE_ARRAY_END(offsets),
508 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::Texture2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4])
510 return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScalarType>();
514 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::Texture2DArrayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4])
516 return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast<ColorScalarType>();
520 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::TextureCubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4])
522 DE_ASSERT(isZeroOffsetOffsets(offsets));
523 DE_UNREF(offsets);
527 offsets)[4])
529 return texture.gatherOffsetsCompare(sampler, refZ, coord.x(), coord.y(), offsets);
532 static Vec4 gatherOffsetsCompare (const tcu::Texture2DArrayView& texture, const tcu::Sampler& sampler, float refZ, const Vec3& coord, const IVec2 (&offsets)[4])
534 return texture.gatherOffsetsCompare(sampler, refZ, coord.x(), coord.y(), coord.z(), offsets);
537 static Vec4 gatherOffsetsCompare (const tcu::TextureCubeView& texture, const tcu::Sampler& sampler, float refZ, const Vec3& coord, const IVec2 (&offsets)[4])
539 DE_ASSERT(isZeroOffsetOffsets(offsets));
540 DE_UNREF(offsets);
550 const IVec2 (&offsets)[4],
553 DE_ASSERT(isZeroOffsetOffsets(offsets));
554 DE_UNREF(offsets);
562 const IVec2 (&offsets)[4],
566 DE_ASSERT(isZeroOffsetOffsets(offsets));
567 DE_UNREF(offsets);
595 IVec2 offsets[4];
596 getPixelOffsets(IVec2(px, py), offsets);
601 const ColorVec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets);
609 if (!isGatherOffsetsResultValid(texture, sampler, lookupPrec, texCoord, componentNdx, offsets, resultPix))
673 IVec2 offsets[4];
674 getPixelOffsets(IVec2(px, py), offsets);
680 const Vec4 idealPix = gatherOffsetsCompare(texture, sampler, refZ, texCoord, offsets);
686 if (!isGatherOffsetsCompareResultValid(texture, sampler, compPrec, texCoord, offsets, refZ, resultPix))
761 case GATHERTYPE_OFFSETS: return "offsets";
772 case GATHERTYPE_OFFSET_DYNAMIC: return "textureGatherOffset with dynamic offsets";
786 IVec2 offsets[4]; // \note Unless GATHERTYPE_OFFSETS is used, only offsets[0] is relevant; also, for GATHERTYPE_OFFSET_DYNAMIC, none are relevant.
791 std::fill(DE_ARRAY_BEGIN(offsets), DE_ARRAY_END(offsets), IVec2());
801 offsets[0] = off0;
802 offsets[1] = off1;
803 offsets[2] = off2;
804 offsets[3] = off3;
812 const IVec2 offset = gatherType == GATHERTYPE_BASIC ? IVec2(0) : gatherArgs.offsets[0];
820 return MovePtr<PixelOffsets>(new MultiplePixelOffsets(gatherArgs.offsets[0],
821 gatherArgs.offsets[1],
822 gatherArgs.offsets[2],
823 gatherArgs.offsets[3]));
1172 result += "ivec2" + de::toString(gatherArgs.offsets[0]);
1181 + string(indentationDepth, '\t') + "\tivec2" + de::toString(gatherArgs.offsets[0]) + ",\n"
1182 + string(indentationDepth, '\t') + "\tivec2" + de::toString(gatherArgs.offsets[1]) + ",\n"
1183 + string(indentationDepth, '\t') + "\tivec2" + de::toString(gatherArgs.offsets[2]) + ",\n"
1184 + string(indentationDepth, '\t') + "\tivec2" + de::toString(gatherArgs.offsets[3]) + ")\n"
1562 if (componentCaseNdx == 0) // Don't test all offsets variants for all color components (they should be pretty orthogonal).
1593 if (componentCaseNdx == 0) // Don't test all offsets variants for all color components (they should be pretty orthogonal).
1774 // For other layers than 0, only test one component and one set of offsets per layer.
2097 offsetSize == OFFSETSIZE_MINIMUM_REQUIRED ? "Use offsets within GL minimum required range"
2098 : offsetSize == OFFSETSIZE_IMPLEMENTATION_MAXIMUM ? "Use offsets within the implementation range"