Lines Matching refs:prec
77 static inline bool isColorValid (const LookupPrecision& prec, const Vec4& ref, const Vec4& result) in isColorValid() argument
80 return boolAll(logicalOr(lessThanEqual(diff, prec.colorThreshold), logicalNot(prec.colorMask))); in isColorValid()
83 static inline bool isColorValid (const IntLookupPrecision& prec, const IVec4& ref, const IVec4& res… in isColorValid() argument
85 …ll(logicalOr(lessThanEqual(absDiff(ref, result).asUint(), prec.colorThreshold), logicalNot(prec.co… in isColorValid()
88 static inline bool isColorValid (const IntLookupPrecision& prec, const UVec4& ref, const UVec4& res… in isColorValid() argument
90 …return boolAll(logicalOr(lessThanEqual(absDiff(ref, result), prec.colorThreshold), logicalNot(prec… in isColorValid()
139 static float computeBilinearSearchStepFromFloatLine (const LookupPrecision& prec, in computeBilinearSearchStepFromFloatLine() argument
142 DE_ASSERT(boolAll(greaterThan(prec.colorThreshold, Vec4(0.0f)))); in computeBilinearSearchStepFromFloatLine()
146 const Vec4 stepCount = d / prec.colorThreshold; in computeBilinearSearchStepFromFloatLine()
153 static float computeBilinearSearchStepFromFloatQuad (const LookupPrecision& prec, in computeBilinearSearchStepFromFloatQuad() argument
156 DE_ASSERT(boolAll(greaterThan(prec.colorThreshold, Vec4(0.0f)))); in computeBilinearSearchStepFromFloatQuad()
164 const Vec4 stepCount = maxD / prec.colorThreshold; in computeBilinearSearchStepFromFloatQuad()
171 static float computeBilinearSearchStepForUnorm (const LookupPrecision& prec) in computeBilinearSearchStepForUnorm() argument
173 DE_ASSERT(boolAll(greaterThan(prec.colorThreshold, Vec4(0.0f)))); in computeBilinearSearchStepForUnorm()
175 const Vec4 stepCount = 1.0f / prec.colorThreshold; in computeBilinearSearchStepForUnorm()
182 static float computeBilinearSearchStepForSnorm (const LookupPrecision& prec) in computeBilinearSearchStepForSnorm() argument
184 DE_ASSERT(boolAll(greaterThan(prec.colorThreshold, Vec4(0.0f)))); in computeBilinearSearchStepForSnorm()
186 const Vec4 stepCount = 2.0f / prec.colorThreshold; in computeBilinearSearchStepForSnorm()
213 static bool isInColorBounds (const LookupPrecision& prec, const ColorQuad& quad, const Vec4& result) in isInColorBounds() argument
215 const tcu::Vec4 minVal = min(quad) - prec.colorThreshold; in isInColorBounds()
216 const tcu::Vec4 maxVal = max(quad) + prec.colorThreshold; in isInColorBounds()
217 …And(greaterThanEqual(result, minVal), lessThanEqual(result, maxVal)), logicalNot(prec.colorMask))); in isInColorBounds()
220 static bool isInColorBounds (const LookupPrecision& prec, const ColorQuad& quad0, const ColorQuad& … in isInColorBounds() argument
222 const tcu::Vec4 minVal = min(min(quad0), min(quad1)) - prec.colorThreshold; in isInColorBounds()
223 const tcu::Vec4 maxVal = max(max(quad0), max(quad1)) + prec.colorThreshold; in isInColorBounds()
224 …And(greaterThanEqual(result, minVal), lessThanEqual(result, maxVal)), logicalNot(prec.colorMask))); in isInColorBounds()
227 static bool isInColorBounds (const LookupPrecision& prec, const ColorLine& line0, const ColorLine& … in isInColorBounds() argument
229 const tcu::Vec4 minVal = min(min(line0), min(line1)) - prec.colorThreshold; in isInColorBounds()
230 const tcu::Vec4 maxVal = max(max(line0), max(line1)) + prec.colorThreshold; in isInColorBounds()
231 …And(greaterThanEqual(result, minVal), lessThanEqual(result, maxVal)), logicalNot(prec.colorMask))); in isInColorBounds()
234 static bool isInColorBounds (const LookupPrecision& prec, in isInColorBounds() argument
241 …const tcu::Vec4 minVal = min(min(quad00), min(min(quad01), min(min(quad10), min(quad11)))) - prec.… in isInColorBounds()
242 …const tcu::Vec4 maxVal = max(max(quad00), max(max(quad01), max(max(quad10), max(quad11)))) + prec.… in isInColorBounds()
243 …And(greaterThanEqual(result, minVal), lessThanEqual(result, maxVal)), logicalNot(prec.colorMask))); in isInColorBounds()
248 static bool isLinearRangeValid (const LookupPrecision& prec, in isLinearRangeValid() argument
259 const Vec4 rMin = result - prec.colorThreshold; in isLinearRangeValid()
260 const Vec4 rMax = result + prec.colorThreshold; in isLinearRangeValid()
267 if (!prec.colorMask[compNdx]) in isLinearRangeValid()
287 static bool isBilinearRangeValid (const LookupPrecision& prec, in isBilinearRangeValid() argument
299 if (!isInColorBounds(prec, quad, result)) in isBilinearRangeValid()
308 if (isLinearRangeValid(prec, c0, c1, yBounds, result)) in isBilinearRangeValid()
315 static bool isTrilinearRangeValid (const LookupPrecision& prec, in isTrilinearRangeValid() argument
332 if (!isInColorBounds(prec, quad0, quad1, result)) in isTrilinearRangeValid()
344 if (isLinearRangeValid(prec, c0, c1, zBounds, result)) in isTrilinearRangeValid()
352 static bool is1DTrilinearFilterResultValid (const LookupPrecision& prec, in is1DTrilinearFilterResultValid() argument
368 if (!isInColorBounds(prec, line0, line1, result)) in is1DTrilinearFilterResultValid()
381 if (isLinearRangeValid(prec, c0, c1, zBounds, result)) in is1DTrilinearFilterResultValid()
389 static bool is2DTrilinearFilterResultValid (const LookupPrecision& prec, in is2DTrilinearFilterResultValid() argument
413 if (!isInColorBounds(prec, quad0, quad1, result)) in is2DTrilinearFilterResultValid()
432 if (isLinearRangeValid(prec, c0, c1, zBounds, result)) in is2DTrilinearFilterResultValid()
442 static bool is3DTrilinearFilterResultValid (const LookupPrecision& prec, in is3DTrilinearFilterResultValid() argument
476 if (!isInColorBounds(prec, quad00, quad01, quad10, quad11, result)) in is3DTrilinearFilterResultValid()
507 if (isLinearRangeValid(prec, cz0, cz1, wBounds, result)) in is3DTrilinearFilterResultValid()
522 const PrecType& prec, in isNearestSampleResultValid() argument
529 …CoordBounds(sampler.normalizedCoords, level.getWidth(), coordX, prec.coordBits.x(), prec.uvwBits.x… in isNearestSampleResultValid()
539 if (isColorValid(prec, color, result)) in isNearestSampleResultValid()
549 const PrecType& prec, in isNearestSampleResultValid() argument
554 …rdBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isNearestSampleResultValid()
555 …dBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isNearestSampleResultValid()
573 if (isColorValid(prec, color, result)) in isNearestSampleResultValid()
584 const PrecType& prec, in isNearestSampleResultValid() argument
588 …rdBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isNearestSampleResultValid()
589 …dBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isNearestSampleResultValid()
590 …rdBounds(sampler.normalizedCoords, level.getDepth(), coord.z(), prec.coordBits.z(), prec.uvwBits.z… in isNearestSampleResultValid()
613 if (isColorValid(prec, color, result)) in isNearestSampleResultValid()
624 const LookupPrecision& prec, in isLinearSampleResultValid() argument
629 …CoordBounds(sampler.normalizedCoords, level.getWidth(), coordX, prec.coordBits.x(), prec.uvwBits.x… in isLinearSampleResultValid()
658 if (isLinearRangeValid(prec, colorA, colorB, Vec2(minA, maxA), result)) in isLinearSampleResultValid()
667 const LookupPrecision& prec, in isLinearSampleResultValid() argument
672 …rdBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isLinearSampleResultValid()
673 …dBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isLinearSampleResultValid()
685 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isLinearSampleResultValid()
686 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isLinearSampleResultValid()
715 searchStep = computeBilinearSearchStepFromFloatQuad(prec, quad); in isLinearSampleResultValid()
717 if (isBilinearRangeValid(prec, quad, Vec2(minA, maxA), Vec2(minB, maxB), searchStep, result)) in isLinearSampleResultValid()
727 const LookupPrecision& prec, in isLinearSampleResultValid() argument
731 …rdBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isLinearSampleResultValid()
732 …dBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isLinearSampleResultValid()
733 …rdBounds(sampler.normalizedCoords, level.getDepth(), coord.z(), prec.coordBits.z(), prec.uvwBits.z… in isLinearSampleResultValid()
748 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isLinearSampleResultValid()
749 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isLinearSampleResultValid()
785 … de::min(computeBilinearSearchStepFromFloatQuad(prec, quad0), computeBilinearSearchStepFromFloatQu… in isLinearSampleResultValid()
787 …if (isTrilinearRangeValid(prec, quad0, quad1, Vec2(minA, maxA), Vec2(minB, maxB), Vec2(minC, maxC)… in isLinearSampleResultValid()
799 const LookupPrecision& prec, in isNearestMipmapLinearSampleResultValid() argument
808 …teNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord, prec.coordBits.x(), prec.uvwBits.x… in isNearestMipmapLinearSampleResultValid()
809 …teNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord, prec.coordBits.x(), prec.uvwBits.x… in isNearestMipmapLinearSampleResultValid()
824 if (isLinearRangeValid(prec, c0, c1, fBounds, result)) in isNearestMipmapLinearSampleResultValid()
835 const LookupPrecision& prec, in isNearestMipmapLinearSampleResultValid() argument
846 …nNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isNearestMipmapLinearSampleResultValid()
847 …nNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isNearestMipmapLinearSampleResultValid()
848 …nNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isNearestMipmapLinearSampleResultValid()
849 …nNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isNearestMipmapLinearSampleResultValid()
872 if (isLinearRangeValid(prec, c0, c1, fBounds, result)) in isNearestMipmapLinearSampleResultValid()
885 const LookupPrecision& prec, in isNearestMipmapLinearSampleResultValid() argument
897 …nNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isNearestMipmapLinearSampleResultValid()
898 …nNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isNearestMipmapLinearSampleResultValid()
899 …nNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isNearestMipmapLinearSampleResultValid()
900 …nNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isNearestMipmapLinearSampleResultValid()
901 …nNormalizedCoordBounds(sampler.normalizedCoords, d0, coord.z(), prec.coordBits.z(), prec.uvwBits.z… in isNearestMipmapLinearSampleResultValid()
902 …nNormalizedCoordBounds(sampler.normalizedCoords, d1, coord.z(), prec.coordBits.z(), prec.uvwBits.z… in isNearestMipmapLinearSampleResultValid()
933 if (isLinearRangeValid(prec, c0, c1, fBounds, result)) in isNearestMipmapLinearSampleResultValid()
948 const LookupPrecision& prec, in isLinearMipmapLinearSampleResultValid() argument
960 …eNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coordX, prec.coordBits.x(), prec.uvwBits.x… in isLinearMipmapLinearSampleResultValid()
961 …eNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coordX, prec.coordBits.x(), prec.uvwBits.x… in isLinearMipmapLinearSampleResultValid()
970 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isLinearMipmapLinearSampleResultValid()
971 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isLinearMipmapLinearSampleResultValid()
989 searchStep0 = computeBilinearSearchStepFromFloatLine(prec, line0); in isLinearMipmapLinearSampleResultValid()
1008 searchStep1 = computeBilinearSearchStepFromFloatLine(prec, line1); in isLinearMipmapLinearSampleResultValid()
1016 …if (is1DTrilinearFilterResultValid(prec, line0, line1, Vec2(minA0, maxA0), Vec2(minA1, maxA1), fBo… in isLinearMipmapLinearSampleResultValid()
1027 const LookupPrecision& prec, in isLinearMipmapLinearSampleResultValid() argument
1041 …nNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isLinearMipmapLinearSampleResultValid()
1042 …nNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isLinearMipmapLinearSampleResultValid()
1043 …nNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isLinearMipmapLinearSampleResultValid()
1044 …nNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isLinearMipmapLinearSampleResultValid()
1057 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isLinearMipmapLinearSampleResultValid()
1058 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isLinearMipmapLinearSampleResultValid()
1080 searchStep0 = computeBilinearSearchStepFromFloatQuad(prec, quad0); in isLinearMipmapLinearSampleResultValid()
1105 searchStep1 = computeBilinearSearchStepFromFloatQuad(prec, quad1); in isLinearMipmapLinearSampleResultValid()
1115 …if (is2DTrilinearFilterResultValid(prec, quad0, quad1, Vec2(minA0, maxA0), Vec2(minB0, maxB0), Vec… in isLinearMipmapLinearSampleResultValid()
1129 const LookupPrecision& prec, in isLinearMipmapLinearSampleResultValid() argument
1144 …nNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isLinearMipmapLinearSampleResultValid()
1145 …nNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isLinearMipmapLinearSampleResultValid()
1146 …nNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isLinearMipmapLinearSampleResultValid()
1147 …nNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isLinearMipmapLinearSampleResultValid()
1148 …nNormalizedCoordBounds(sampler.normalizedCoords, d0, coord.z(), prec.coordBits.z(), prec.uvwBits.z… in isLinearMipmapLinearSampleResultValid()
1149 …nNormalizedCoordBounds(sampler.normalizedCoords, d1, coord.z(), prec.coordBits.z(), prec.uvwBits.z… in isLinearMipmapLinearSampleResultValid()
1166 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isLinearMipmapLinearSampleResultValid()
1167 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isLinearMipmapLinearSampleResultValid()
1194 …de::min(computeBilinearSearchStepFromFloatQuad(prec, quad00), computeBilinearSearchStepFromFloatQu… in isLinearMipmapLinearSampleResultValid()
1226 …de::min(computeBilinearSearchStepFromFloatQuad(prec, quad10), computeBilinearSearchStepFromFloatQu… in isLinearMipmapLinearSampleResultValid()
1238 if (is3DTrilinearFilterResultValid(prec, quad00, quad01, quad10, quad11, in isLinearMipmapLinearSampleResultValid()
1256 const LookupPrecision& prec, in isLevelSampleResultValid() argument
1262 return isLinearSampleResultValid(level, sampler, prec, coordX, coordY, result); in isLevelSampleResultValid()
1264 return isNearestSampleResultValid(level, sampler, prec, coordX, coordY, result); in isLevelSampleResultValid()
1270 const LookupPrecision& prec, in isLevelSampleResultValid() argument
1276 return isLinearSampleResultValid(level, sampler, prec, coord, coordZ, result); in isLevelSampleResultValid()
1278 return isNearestSampleResultValid(level, sampler, prec, coord, coordZ, result); in isLevelSampleResultValid()
1285 const LookupPrecision& prec, in isMipmapLinearSampleResultValid() argument
1292 …return isLinearMipmapLinearSampleResultValid(level0, level1, sampler, prec, coordX, coordY, fBound… in isMipmapLinearSampleResultValid()
1294 …return isNearestMipmapLinearSampleResultValid(level0, level1, sampler, prec, coordX, coordY, fBoun… in isMipmapLinearSampleResultValid()
1301 const LookupPrecision& prec, in isMipmapLinearSampleResultValid() argument
1308 …return isLinearMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, coordZ, fBounds… in isMipmapLinearSampleResultValid()
1310 …return isNearestMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, coordZ, fBound… in isMipmapLinearSampleResultValid()
1313 …st Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord,… in isLookupResultValid() argument
1324 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, resu… in isLookupResultValid()
1349 …), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, Vec2(min… in isLookupResultValid()
1364 …Valid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, result)) in isLookupResultValid()
1370 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, resu… in isLookupResultValid()
1378 …st Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord,… in isLookupResultValid() argument
1389 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, resu… in isLookupResultValid()
1414 …), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, Vec2(min… in isLookupResultValid()
1429 …Valid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coord, 0, result)) in isLookupResultValid()
1435 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, resu… in isLookupResultValid()
1445 const LookupPrecision& prec, in isSeamlessLinearSampleResultValid() argument
1451 …NormalizedCoordBounds(sampler.normalizedCoords, size, coords.s, prec.coordBits.x(), prec.uvwBits.x… in isSeamlessLinearSampleResultValid()
1452 …NormalizedCoordBounds(sampler.normalizedCoords, size, coords.t, prec.coordBits.y(), prec.uvwBits.y… in isSeamlessLinearSampleResultValid()
1461 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isSeamlessLinearSampleResultValid()
1462 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isSeamlessLinearSampleResultValid()
1496 searchStep = computeBilinearSearchStepFromFloatQuad(prec, quad); in isSeamlessLinearSampleResultValid()
1498 if (isBilinearRangeValid(prec, quad, Vec2(minA, maxA), Vec2(minB, maxB), searchStep, result)) in isSeamlessLinearSampleResultValid()
1509 const LookupPrecision& prec, in isSeamplessLinearMipmapLinearSampleResultValid() argument
1520 …ormalizedCoordBounds(sampler.normalizedCoords, size0, coords.s, prec.coordBits.x(), prec.uvwBits.x… in isSeamplessLinearMipmapLinearSampleResultValid()
1521 …ormalizedCoordBounds(sampler.normalizedCoords, size1, coords.s, prec.coordBits.x(), prec.uvwBits.x… in isSeamplessLinearMipmapLinearSampleResultValid()
1522 …ormalizedCoordBounds(sampler.normalizedCoords, size0, coords.t, prec.coordBits.y(), prec.uvwBits.y… in isSeamplessLinearMipmapLinearSampleResultValid()
1523 …ormalizedCoordBounds(sampler.normalizedCoords, size1, coords.t, prec.coordBits.y(), prec.uvwBits.y… in isSeamplessLinearMipmapLinearSampleResultValid()
1536 … = texClass == TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT ? computeBilinearSearchStepForUnorm(prec) : in isSeamplessLinearMipmapLinearSampleResultValid()
1537 … texClass == TEXTURECHANNELCLASS_SIGNED_FIXED_POINT ? computeBilinearSearchStepForSnorm(prec) : in isSeamplessLinearMipmapLinearSampleResultValid()
1568 searchStep0 = computeBilinearSearchStepFromFloatQuad(prec, quad0); in isSeamplessLinearMipmapLinearSampleResultValid()
1600 searchStep1 = computeBilinearSearchStepFromFloatQuad(prec, quad1); in isSeamplessLinearMipmapLinearSampleResultValid()
1610 …if (is2DTrilinearFilterResultValid(prec, quad0, quad1, Vec2(minA0, maxA0), Vec2(minB0, maxB0), Vec… in isSeamplessLinearMipmapLinearSampleResultValid()
1624 const LookupPrecision& prec, in isCubeLevelSampleResultValid() argument
1631 return isSeamlessLinearSampleResultValid(level, sampler, prec, coords, result); in isCubeLevelSampleResultValid()
1633 …return isLinearSampleResultValid(level[coords.face], sampler, prec, Vec2(coords.s, coords.t), 0, r… in isCubeLevelSampleResultValid()
1636 …return isNearestSampleResultValid(level[coords.face], sampler, prec, Vec2(coords.s, coords.t), 0, … in isCubeLevelSampleResultValid()
1643 const LookupPrecision& prec, in isCubeMipmapLinearSampleResultValid() argument
1651 …return isSeamplessLinearMipmapLinearSampleResultValid(faces0, faces1, sampler, prec, coords, fBoun… in isCubeMipmapLinearSampleResultValid()
1653 …inearSampleResultValid(faces0[coords.face], faces1[coords.face], sampler, prec, Vec2(coords.s, coo… in isCubeMipmapLinearSampleResultValid()
1656 …inearSampleResultValid(faces0[coords.face], faces1[coords.face], sampler, prec, Vec2(coords.s, coo… in isCubeMipmapLinearSampleResultValid()
1665 … TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord,… in isLookupResultValid() argument
1672 getPossibleCubeFaces(coord, prec.coordBits, &possibleFaces[0], numPossibleFaces); in isLookupResultValid()
1690 if (isCubeLevelSampleResultValid(faces, sampler, sampler.magFilter, prec, faceCoords, result)) in isLookupResultValid()
1721 …leResultValid(faces0, faces1, sampler, getLevelFilter(sampler.minFilter), prec, faceCoords, Vec2(m… in isLookupResultValid()
1739 …if (isCubeLevelSampleResultValid(faces, sampler, getLevelFilter(sampler.minFilter), prec, faceCoor… in isLookupResultValid()
1748 if (isCubeLevelSampleResultValid(faces, sampler, sampler.minFilter, prec, faceCoords, result)) in isLookupResultValid()
1768 …xture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord,… in isLookupResultValid() argument
1770 …const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), prec.coordBits.y(), coord.y()… in isLookupResultValid()
1783 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coordX, layer,… in isLookupResultValid()
1808 …), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coordX, layer, Vec… in isLookupResultValid()
1823 …alid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coordX, layer, res… in isLookupResultValid()
1829 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coordX, layer,… in isLookupResultValid()
1838 …xture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord,… in isLookupResultValid() argument
1840 …const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), prec.coordBits.z(), coord.z()… in isLookupResultValid()
1853 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coordXY, layer… in isLookupResultValid()
1878 …), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coordXY, layer, Ve… in isLookupResultValid()
1893 …alid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coordXY, layer, re… in isLookupResultValid()
1899 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coordXY, layer… in isLookupResultValid()
1911 const LookupPrecision& prec, in isLevelSampleResultValid() argument
1916 return isLinearSampleResultValid(level, sampler, prec, coord, result); in isLevelSampleResultValid()
1918 return isNearestSampleResultValid(level, sampler, prec, coord, result); in isLevelSampleResultValid()
1925 const LookupPrecision& prec, in isMipmapLinearSampleResultValid() argument
1931 …return isLinearMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, fBounds, result… in isMipmapLinearSampleResultValid()
1933 …return isNearestMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, fBounds, resul… in isMipmapLinearSampleResultValid()
1936 …st Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord,… in isLookupResultValid() argument
1947 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, result)) in isLookupResultValid()
1972 …), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFilter), prec, coord, Vec2(minF, … in isLookupResultValid()
1987 …ultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), prec, coord, result)) in isLookupResultValid()
1993 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, result)) in isLookupResultValid()
2013 …ureCubeArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const IVec4& coord… in isLookupResultValid() argument
2022 getPossibleCubeFaces(layerCoord, prec.coordBits, &possibleFaces[0], numPossibleFaces); in isLookupResultValid()
2042 if (isCubeLevelSampleResultValid(faces, sampler, sampler.magFilter, prec, faceCoords, result)) in isLookupResultValid()
2073 …leResultValid(faces0, faces1, sampler, getLevelFilter(sampler.minFilter), prec, faceCoords, Vec2(m… in isLookupResultValid()
2091 …if (isCubeLevelSampleResultValid(faces, sampler, getLevelFilter(sampler.minFilter), prec, faceCoor… in isLookupResultValid()
2100 if (isCubeLevelSampleResultValid(faces, sampler, sampler.minFilter, prec, faceCoords, result)) in isLookupResultValid()
2120 …, const float dwdx, const float dudy, const float dvdy, const float dwdy, const LodPrecision& prec) in computeLodBoundsFromDerivates() argument
2147 const float pMinErr = computeFloatingPointError(pMin, prec.derivateBits); in computeLodBoundsFromDerivates()
2148 const float pMaxErr = computeFloatingPointError(pMax, prec.derivateBits); in computeLodBoundsFromDerivates()
2152 const float lodErr = computeFixedPointError(prec.lodBits); in computeLodBoundsFromDerivates()
2158 … (const float dudx, const float dvdx, const float dudy, const float dvdy, const LodPrecision& prec) in computeLodBoundsFromDerivates() argument
2160 return computeLodBoundsFromDerivates(dudx, dvdx, 0.0f, dudy, dvdy, 0.0f, prec); in computeLodBoundsFromDerivates()
2163 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dudy, const LodPrecision& prec) in computeLodBoundsFromDerivates() argument
2165 return computeLodBoundsFromDerivates(dudx, 0.0f, 0.0f, dudy, 0.0f, 0.0f, prec); in computeLodBoundsFromDerivates()
2168 …ec3& coord, const Vec3& coordDx, const Vec3& coordDy, const int faceSize, const LodPrecision& prec) in computeCubeLodBoundsFromDerivates() argument
2203 const Vec2 bounds = computeLodBoundsFromDerivates(dudx, dvdx, dudy, dvdy, prec); in computeCubeLodBoundsFromDerivates()
2208 const Vec3 dxErr = computeFloatingPointError(coordDx, IVec3(prec.derivateBits)); in computeCubeLodBoundsFromDerivates()
2209 const Vec3 dyErr = computeFloatingPointError(coordDy, IVec3(prec.derivateBits)); in computeCubeLodBoundsFromDerivates()
2226 Vec2 clampLodBounds (const Vec2& lodBounds, const Vec2& lodMinMax, const LodPrecision& prec) in clampLodBounds() argument
2228 const float lodErr = computeFixedPointError(prec.lodBits); in clampLodBounds()
2237 const LookupPrecision& prec, in isLevel1DLookupResultValid() argument
2243 return isLevelSampleResultValid(access, sampler, filterMode, prec, coordX, coordY, result); in isLevel1DLookupResultValid()
2249 const IntLookupPrecision& prec, in isLevel1DLookupResultValid() argument
2256 return isNearestSampleResultValid(access, sampler, prec, coordX, coordY, result); in isLevel1DLookupResultValid()
2262 const IntLookupPrecision& prec, in isLevel1DLookupResultValid() argument
2269 return isNearestSampleResultValid(access, sampler, prec, coordX, coordY, result); in isLevel1DLookupResultValid()
2275 const LookupPrecision& prec, in isLevel2DLookupResultValid() argument
2281 return isLevelSampleResultValid(access, sampler, filterMode, prec, coord, coordZ, result); in isLevel2DLookupResultValid()
2287 const IntLookupPrecision& prec, in isLevel2DLookupResultValid() argument
2294 return isNearestSampleResultValid(access, sampler, prec, coord, coordZ, result); in isLevel2DLookupResultValid()
2300 const IntLookupPrecision& prec, in isLevel2DLookupResultValid() argument
2307 return isNearestSampleResultValid(access, sampler, prec, coord, coordZ, result); in isLevel2DLookupResultValid()
2313 const LookupPrecision& prec, in isLevel3DLookupResultValid() argument
2318 return isLevelSampleResultValid(access, sampler, filterMode, prec, coord, result); in isLevel3DLookupResultValid()
2324 const IntLookupPrecision& prec, in isLevel3DLookupResultValid() argument
2330 return isNearestSampleResultValid(access, sampler, prec, coord, result); in isLevel3DLookupResultValid()
2336 const IntLookupPrecision& prec, in isLevel3DLookupResultValid() argument
2342 return isNearestSampleResultValid(access, sampler, prec, coord, result); in isLevel3DLookupResultValid()
2348 const PrecType& prec, in isGatherOffsetsResultValid() argument
2355 …rdBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x… in isGatherOffsetsResultValid()
2356 …dBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y… in isGatherOffsetsResultValid()
2380 if (isColorValid(prec, color, result)) in isGatherOffsetsResultValid()
2390 const LookupPrecision& prec, in isGatherOffsetsResultValid() argument
2396 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2401 const IntLookupPrecision& prec, in isGatherOffsetsResultValid() argument
2407 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2412 const IntLookupPrecision& prec, in isGatherOffsetsResultValid() argument
2418 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2424 const PrecType& prec, in is2DArrayGatherOffsetsResultValid() argument
2430 const IVec2 layerRange = computeLayerRange(texture.getNumLayers(), prec.coordBits.z(), coord.z()); in is2DArrayGatherOffsetsResultValid()
2433 …if (isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord.swizzle(0,1), layer, comp… in is2DArrayGatherOffsetsResultValid()
2441 const LookupPrecision& prec, in isGatherOffsetsResultValid() argument
2447 …return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, res… in isGatherOffsetsResultValid()
2452 const IntLookupPrecision& prec, in isGatherOffsetsResultValid() argument
2458 …return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, res… in isGatherOffsetsResultValid()
2463 const IntLookupPrecision& prec, in isGatherOffsetsResultValid() argument
2469 …return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, res… in isGatherOffsetsResultValid()
2475 const PrecType& prec, in isGatherResultValid() argument
2482 …NormalizedCoordBounds(sampler.normalizedCoords, size, coords.s, prec.coordBits.x(), prec.uvwBits.x… in isGatherResultValid()
2483 …NormalizedCoordBounds(sampler.normalizedCoords, size, coords.t, prec.coordBits.y(), prec.uvwBits.y… in isGatherResultValid()
2521 if (isColorValid(prec, color, result)) in isGatherResultValid()
2532 const PrecType& prec, in isCubeGatherResultValid() argument
2540 getPossibleCubeFaces(coord, prec.coordBits, &possibleFaces[0], numPossibleFaces); in isCubeGatherResultValid()
2549 if (isGatherResultValid(texture, sampler, prec, faceCoords, componentNdx, result)) in isCubeGatherResultValid()
2558 const LookupPrecision& prec, in isGatherResultValid() argument
2563 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherResultValid()
2568 const IntLookupPrecision& prec, in isGatherResultValid() argument
2573 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherResultValid()
2578 const IntLookupPrecision& prec, in isGatherResultValid() argument
2583 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherResultValid()