Lines Matching refs:sampler

38 static bool isSamplerSupported (const Sampler& sampler)  in isSamplerSupported()  argument
40 return sampler.compare != Sampler::COMPAREMODE_NONE && in isSamplerSupported()
41 isWrapModeSupported(sampler.wrapS) && in isSamplerSupported()
42 isWrapModeSupported(sampler.wrapT) && in isSamplerSupported()
43 isWrapModeSupported(sampler.wrapR); in isSamplerSupported()
134 static float lookupDepth (const tcu::ConstPixelBufferAccess& access, const Sampler& sampler, int i,… in lookupDepth() argument
139 return sampleTextureBorder<float>(access.getFormat(), sampler).x(); in lookupDepth()
143 static float lookupDepthNoBorder (const tcu::ConstPixelBufferAccess& access, const Sampler& sampler in lookupDepthNoBorder() argument
145 DE_UNREF(sampler); in lookupDepthNoBorder()
539 const Sampler& sampler, in isNearestCompareResultValid() argument
547 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth()… in isNearestCompareResultValid()
548 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(… in isNearestCompareResultValid()
560 const int x = wrap(sampler.wrapS, i, level.getWidth()); in isNearestCompareResultValid()
561 const int y = wrap(sampler.wrapT, j, level.getHeight()); in isNearestCompareResultValid()
562 const float depth = lookupDepth(level, sampler, x, y, coordZ); in isNearestCompareResultValid()
563 …const CmpResultSet resSet = execCompare(sampler.compare, depth, cmpReference, prec.referenceBits, … in isNearestCompareResultValid()
574 const Sampler& sampler, in isLinearCompareResultValid() argument
582 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth()… in isLinearCompareResultValid()
583 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(… in isLinearCompareResultValid()
601 const int x0 = wrap(sampler.wrapS, i , w); in isLinearCompareResultValid()
602 const int x1 = wrap(sampler.wrapS, i+1, w); in isLinearCompareResultValid()
603 const int y0 = wrap(sampler.wrapT, j , h); in isLinearCompareResultValid()
604 const int y1 = wrap(sampler.wrapT, j+1, h); in isLinearCompareResultValid()
612 const Vec4 depths (lookupDepth(level, sampler, x0, y0, coordZ), in isLinearCompareResultValid()
613 lookupDepth(level, sampler, x1, y0, coordZ), in isLinearCompareResultValid()
614 lookupDepth(level, sampler, x0, y1, coordZ), in isLinearCompareResultValid()
615 lookupDepth(level, sampler, x1, y1, coordZ)); in isLinearCompareResultValid()
617 …if (isBilinearCompareValid(sampler.compare, prec, depths, Vec2(minA, maxA), Vec2(minB, maxB), cmpR… in isLinearCompareResultValid()
626 const Sampler& sampler, in isLevelCompareResultValid() argument
635 return isLinearCompareResultValid(level, sampler, prec, coord, coordZ, cmpReference, result); in isLevelCompareResultValid()
637 return isNearestCompareResultValid(level, sampler, prec, coord, coordZ, cmpReference, result); in isLevelCompareResultValid()
642 const Sampler& sampler, in isNearestMipmapLinearCompareResultValid() argument
657 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), p… in isNearestMipmapLinearCompareResultValid()
658 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), p… in isNearestMipmapLinearCompareResultValid()
659 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), p… in isNearestMipmapLinearCompareResultValid()
660 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), p… in isNearestMipmapLinearCompareResultValid()
676 …const float depth0 = lookupDepth(level0, sampler, wrap(sampler.wrapS, i0, w0), wrap(sampler.wrapT,… in isNearestMipmapLinearCompareResultValid()
682 …const float depth1 = lookupDepth(level1, sampler, wrap(sampler.wrapS, i1, w1), wrap(sampler.wrapT,… in isNearestMipmapLinearCompareResultValid()
684 …if (isLinearCompareValid(sampler.compare, prec, Vec2(depth0, depth1), fBounds, cmpReference, resul… in isNearestMipmapLinearCompareResultValid()
696 const Sampler& sampler, in isLinearMipmapLinearCompareResultValid() argument
714 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), p… in isLinearMipmapLinearCompareResultValid()
715 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), p… in isLinearMipmapLinearCompareResultValid()
716 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), p… in isLinearMipmapLinearCompareResultValid()
717 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), p… in isLinearMipmapLinearCompareResultValid()
740 const int x0 = wrap(sampler.wrapS, i0 , w0); in isLinearMipmapLinearCompareResultValid()
741 const int x1 = wrap(sampler.wrapS, i0+1, w0); in isLinearMipmapLinearCompareResultValid()
742 const int y0 = wrap(sampler.wrapT, j0 , h0); in isLinearMipmapLinearCompareResultValid()
743 const int y1 = wrap(sampler.wrapT, j0+1, h0); in isLinearMipmapLinearCompareResultValid()
745 depths0[0] = lookupDepth(level0, sampler, x0, y0, coordZ); in isLinearMipmapLinearCompareResultValid()
746 depths0[1] = lookupDepth(level0, sampler, x1, y0, coordZ); in isLinearMipmapLinearCompareResultValid()
747 depths0[2] = lookupDepth(level0, sampler, x0, y1, coordZ); in isLinearMipmapLinearCompareResultValid()
748 depths0[3] = lookupDepth(level0, sampler, x1, y1, coordZ); in isLinearMipmapLinearCompareResultValid()
762 const int x0 = wrap(sampler.wrapS, i1 , w1); in isLinearMipmapLinearCompareResultValid()
763 const int x1 = wrap(sampler.wrapS, i1+1, w1); in isLinearMipmapLinearCompareResultValid()
764 const int y0 = wrap(sampler.wrapT, j1 , h1); in isLinearMipmapLinearCompareResultValid()
765 const int y1 = wrap(sampler.wrapT, j1+1, h1); in isLinearMipmapLinearCompareResultValid()
767 depths1[0] = lookupDepth(level1, sampler, x0, y0, coordZ); in isLinearMipmapLinearCompareResultValid()
768 depths1[1] = lookupDepth(level1, sampler, x1, y0, coordZ); in isLinearMipmapLinearCompareResultValid()
769 depths1[2] = lookupDepth(level1, sampler, x0, y1, coordZ); in isLinearMipmapLinearCompareResultValid()
770 depths1[3] = lookupDepth(level1, sampler, x1, y1, coordZ); in isLinearMipmapLinearCompareResultValid()
773 if (isTrilinearCompareValid(sampler.compare, prec, depths0, depths1, in isLinearMipmapLinearCompareResultValid()
788 const Sampler& sampler, in isMipmapLinearCompareResultValid() argument
798 …return isLinearMipmapLinearCompareResultValid(level0, level1, sampler, prec, coord, coordZ, fBound… in isMipmapLinearCompareResultValid()
800 …return isNearestMipmapLinearCompareResultValid(level0, level1, sampler, prec, coord, coordZ, fBoun… in isMipmapLinearCompareResultValid()
804 const Sampler& sampler, in isTexCompareResultValid() argument
813 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isTexCompareResultValid()
814 const bool canBeMinified = maxLod > sampler.lodThreshold; in isTexCompareResultValid()
816 DE_ASSERT(isSamplerSupported(sampler)); in isTexCompareResultValid()
820 …if (isLevelCompareResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, cmp… in isTexCompareResultValid()
826 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isTexCompareResultValid()
827 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isTexCompareResultValid()
845 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isTexCompareResultValid()
860 …if (isLevelCompareResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter),… in isTexCompareResultValid()
866 …if (isLevelCompareResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, cmp… in isTexCompareResultValid()
876 const Sampler& sampler, in isSeamplessLinearMipmapLinearCompareResultValid() argument
887 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size0, coords.s,… in isSeamplessLinearMipmapLinearCompareResultValid()
888 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size1, coords.s,… in isSeamplessLinearMipmapLinearCompareResultValid()
889 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size0, coords.t,… in isSeamplessLinearMipmapLinearCompareResultValid()
890 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size1, coords.t,… in isSeamplessLinearMipmapLinearCompareResultValid()
932 depths0[0] = lookupDepthNoBorder(faces0[c00.face], sampler, c00.s, c00.t); in isSeamplessLinearMipmapLinearCompareResultValid()
933 depths0[1] = lookupDepthNoBorder(faces0[c10.face], sampler, c10.s, c10.t); in isSeamplessLinearMipmapLinearCompareResultValid()
934 depths0[2] = lookupDepthNoBorder(faces0[c01.face], sampler, c01.s, c01.t); in isSeamplessLinearMipmapLinearCompareResultValid()
935 depths0[3] = lookupDepthNoBorder(faces0[c11.face], sampler, c11.s, c11.t); in isSeamplessLinearMipmapLinearCompareResultValid()
957 depths1[0] = lookupDepthNoBorder(faces1[c00.face], sampler, c00.s, c00.t); in isSeamplessLinearMipmapLinearCompareResultValid()
958 depths1[1] = lookupDepthNoBorder(faces1[c10.face], sampler, c10.s, c10.t); in isSeamplessLinearMipmapLinearCompareResultValid()
959 depths1[2] = lookupDepthNoBorder(faces1[c01.face], sampler, c01.s, c01.t); in isSeamplessLinearMipmapLinearCompareResultValid()
960 depths1[3] = lookupDepthNoBorder(faces1[c11.face], sampler, c11.s, c11.t); in isSeamplessLinearMipmapLinearCompareResultValid()
964 if (isTrilinearCompareValid(sampler.compare, prec, depths0, depths1, in isSeamplessLinearMipmapLinearCompareResultValid()
979 const Sampler& sampler, in isCubeMipmapLinearCompareResultValid() argument
989 if (sampler.seamlessCubeMap) in isCubeMipmapLinearCompareResultValid()
990 …return isSeamplessLinearMipmapLinearCompareResultValid(texture, baseLevelNdx, sampler, prec, coord… in isCubeMipmapLinearCompareResultValid()
994 sampler, prec, Vec2(coords.s, coords.t), 0, fBounds, cmpReference, result); in isCubeMipmapLinearCompareResultValid()
999 sampler, prec, Vec2(coords.s, coords.t), 0, fBounds, cmpReference, result); in isCubeMipmapLinearCompareResultValid()
1004 const Sampler& sampler, in isSeamlessLinearCompareResultValid() argument
1013 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.s, … in isSeamlessLinearCompareResultValid()
1014 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.t, … in isSeamlessLinearCompareResultValid()
1048 depths[0] = lookupDepthNoBorder(faces[c00.face], sampler, c00.s, c00.t); in isSeamlessLinearCompareResultValid()
1049 depths[1] = lookupDepthNoBorder(faces[c10.face], sampler, c10.s, c10.t); in isSeamlessLinearCompareResultValid()
1050 depths[2] = lookupDepthNoBorder(faces[c01.face], sampler, c01.s, c01.t); in isSeamlessLinearCompareResultValid()
1051 depths[3] = lookupDepthNoBorder(faces[c11.face], sampler, c11.s, c11.t); in isSeamlessLinearCompareResultValid()
1053 …if (isBilinearCompareValid(sampler.compare, prec, depths, Vec2(minA, maxA), Vec2(minB, maxB), cmpR… in isSeamlessLinearCompareResultValid()
1063 const Sampler& sampler, in isCubeLevelCompareResultValid() argument
1072 if (sampler.seamlessCubeMap) in isCubeLevelCompareResultValid()
1073 …return isSeamlessLinearCompareResultValid(texture, levelNdx, sampler, prec, coords, cmpReference, … in isCubeLevelCompareResultValid()
1075 …return isLinearCompareResultValid(texture.getLevelFace(levelNdx, coords.face), sampler, prec, Vec2… in isCubeLevelCompareResultValid()
1078 …return isNearestCompareResultValid(texture.getLevelFace(levelNdx, coords.face), sampler, prec, Vec… in isCubeLevelCompareResultValid()
1081 bool isTexCompareResultValid (const TextureCubeView& texture, const Sampler& sampler, const TexComp… in isTexCompareResultValid() argument
1086 DE_ASSERT(isSamplerSupported(sampler)); in isTexCompareResultValid()
1098 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isTexCompareResultValid()
1099 const bool canBeMinified = maxLod > sampler.lodThreshold; in isTexCompareResultValid()
1103 …if (isCubeLevelCompareResultValid(texture, 0, sampler, sampler.magFilter, prec, faceCoords, cmpRef… in isTexCompareResultValid()
1109 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isTexCompareResultValid()
1110 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isTexCompareResultValid()
1128 …if (isCubeMipmapLinearCompareResultValid(texture, level, sampler, getLevelFilter(sampler.minFilter… in isTexCompareResultValid()
1143 …if (isCubeLevelCompareResultValid(texture, level, sampler, getLevelFilter(sampler.minFilter), prec… in isTexCompareResultValid()
1149 …if (isCubeLevelCompareResultValid(texture, 0, sampler, sampler.minFilter, prec, faceCoords, cmpRef… in isTexCompareResultValid()
1158 bool isTexCompareResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const TexC… in isTexCompareResultValid() argument
1166 DE_ASSERT(isSamplerSupported(sampler)); in isTexCompareResultValid()
1172 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isTexCompareResultValid()
1173 const bool canBeMinified = maxLod > sampler.lodThreshold; in isTexCompareResultValid()
1177 …if (isLevelCompareResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord.swizzle… in isTexCompareResultValid()
1183 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isTexCompareResultValid()
1184 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isTexCompareResultValid()
1202 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isTexCompareResultValid()
1217 …if (isLevelCompareResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter),… in isTexCompareResultValid()
1223 …if (isLevelCompareResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord.swizzle… in isTexCompareResultValid()
1233 const Sampler& sampler, in isGatherOffsetsCompareResultValid() argument
1242 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, texture.getWidth… in isGatherOffsetsCompareResultValid()
1243 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, texture.getHeigh… in isGatherOffsetsCompareResultValid()
1263 const int x = wrap(sampler.wrapS, i+offsets[offNdx].x(), w); in isGatherOffsetsCompareResultValid()
1264 const int y = wrap(sampler.wrapT, j+offsets[offNdx].y(), h); in isGatherOffsetsCompareResultValid()
1265 const float depth = lookupDepth(texture, sampler, x, y, coordZ); in isGatherOffsetsCompareResultValid()
1266 …const CmpResultSet resSet = execCompare(sampler.compare, depth, cmpReference, prec.referenceBits, … in isGatherOffsetsCompareResultValid()
1281 const Sampler& sampler, in isGatherOffsetsCompareResultValid() argument
1288 DE_ASSERT(isSamplerSupported(sampler)); in isGatherOffsetsCompareResultValid()
1290 …return isGatherOffsetsCompareResultValid(texture.getLevel(0), sampler, prec, coord, 0, offsets, cm… in isGatherOffsetsCompareResultValid()
1294 const Sampler& sampler, in isGatherOffsetsCompareResultValid() argument
1307 DE_ASSERT(isSamplerSupported(sampler)); in isGatherOffsetsCompareResultValid()
1311 …if (isGatherOffsetsCompareResultValid(texture.getLevel(0), sampler, prec, coord.swizzle(0,1), laye… in isGatherOffsetsCompareResultValid()
1318 const Sampler& sampler, in isGatherCompareResultValid() argument
1326 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.s, … in isGatherCompareResultValid()
1327 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.t, … in isGatherCompareResultValid()
1363 const float depth = lookupDepthNoBorder(faces[c.face], sampler, c.s, c.t); in isGatherCompareResultValid()
1364 …const CmpResultSet resSet = execCompare(sampler.compare, depth, cmpReference, prec.referenceBits, … in isGatherCompareResultValid()
1379 const Sampler& sampler, in isGatherCompareResultValid() argument
1388 DE_ASSERT(isSamplerSupported(sampler)); in isGatherCompareResultValid()
1399 if (isGatherCompareResultValid(texture, sampler, prec, faceCoords, cmpReference, result)) in isGatherCompareResultValid()