Lines Matching refs:sampler

1239 static inline Vec4 lookupBorder (const tcu::TextureFormat& format, const tcu::Sampler& sampler)  in lookupBorder()  argument
1252 return sampleTextureBorder<float>(format, sampler); in lookupBorder()
1254 return sampleTextureBorder<deInt32>(format, sampler).cast<float>(); in lookupBorder()
1256 return sampleTextureBorder<deUint32>(format, sampler).cast<float>(); in lookupBorder()
1288 static Vec4 sampleNearest1D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u,… in sampleNearest1D() argument
1295 if (sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) in sampleNearest1D()
1296 return lookupBorder(access.getFormat(), sampler); in sampleNearest1D()
1298 int i = wrap(sampler.wrapS, x, width); in sampleNearest1D()
1303 static Vec4 sampleNearest2D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u,… in sampleNearest2D() argument
1312 if ((sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) || in sampleNearest2D()
1313 (sampler.wrapT == Sampler::CLAMP_TO_BORDER && !deInBounds32(y, 0, height))) in sampleNearest2D()
1314 return lookupBorder(access.getFormat(), sampler); in sampleNearest2D()
1316 int i = wrap(sampler.wrapS, x, width); in sampleNearest2D()
1317 int j = wrap(sampler.wrapT, y, height); in sampleNearest2D()
1322 static Vec4 sampleNearest3D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u,… in sampleNearest3D() argument
1333 if ((sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) || in sampleNearest3D()
1334 (sampler.wrapT == Sampler::CLAMP_TO_BORDER && !deInBounds32(y, 0, height)) || in sampleNearest3D()
1335 (sampler.wrapR == Sampler::CLAMP_TO_BORDER && !deInBounds32(z, 0, depth))) in sampleNearest3D()
1336 return lookupBorder(access.getFormat(), sampler); in sampleNearest3D()
1338 int i = wrap(sampler.wrapS, x, width); in sampleNearest3D()
1339 int j = wrap(sampler.wrapT, y, height); in sampleNearest3D()
1340 int k = wrap(sampler.wrapR, z, depth); in sampleNearest3D()
1345 static Vec4 sampleLinear1D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u, … in sampleLinear1D() argument
1352 int i0 = wrap(sampler.wrapS, x0, w); in sampleLinear1D()
1353 int i1 = wrap(sampler.wrapS, x1, w); in sampleLinear1D()
1357 bool i0UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i0, 0, w); in sampleLinear1D()
1358 bool i1UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i1, 0, w); in sampleLinear1D()
1361 …Vec4 p0 = i0UseBorder ? lookupBorder(access.getFormat(), sampler) : lookup(access, i0, offset.y(),… in sampleLinear1D()
1362 …Vec4 p1 = i1UseBorder ? lookupBorder(access.getFormat(), sampler) : lookup(access, i1, offset.y(),… in sampleLinear1D()
1368 static Vec4 sampleLinear2D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u, … in sampleLinear2D() argument
1378 int i0 = wrap(sampler.wrapS, x0, w); in sampleLinear2D()
1379 int i1 = wrap(sampler.wrapS, x1, w); in sampleLinear2D()
1380 int j0 = wrap(sampler.wrapT, y0, h); in sampleLinear2D()
1381 int j1 = wrap(sampler.wrapT, y1, h); in sampleLinear2D()
1386 bool i0UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i0, 0, w); in sampleLinear2D()
1387 bool i1UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i1, 0, w); in sampleLinear2D()
1388 bool j0UseBorder = sampler.wrapT == Sampler::CLAMP_TO_BORDER && !de::inBounds(j0, 0, h); in sampleLinear2D()
1389 bool j1UseBorder = sampler.wrapT == Sampler::CLAMP_TO_BORDER && !de::inBounds(j1, 0, h); in sampleLinear2D()
1392 …Vec4 p00 = (i0UseBorder || j0UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(acces… in sampleLinear2D()
1393 …Vec4 p10 = (i1UseBorder || j0UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(acces… in sampleLinear2D()
1394 …Vec4 p01 = (i0UseBorder || j1UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(acces… in sampleLinear2D()
1395 …Vec4 p11 = (i1UseBorder || j1UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(acces… in sampleLinear2D()
1404 static float sampleLinear1DCompare (const ConstPixelBufferAccess& access, const Sampler& sampler, f… in sampleLinear1DCompare() argument
1411 int i0 = wrap(sampler.wrapS, x0, w); in sampleLinear1DCompare()
1412 int i1 = wrap(sampler.wrapS, x1, w); in sampleLinear1DCompare()
1416 bool i0UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i0, 0, w); in sampleLinear1DCompare()
1417 bool i1UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i1, 0, w); in sampleLinear1DCompare()
1420 …Vec4 p0Clr = i0UseBorder ? lookupBorder(access.getFormat(), sampler) : lookup(access, i0, offset.… in sampleLinear1DCompare()
1421 …Vec4 p1Clr = i1UseBorder ? lookupBorder(access.getFormat(), sampler) : lookup(access, i1, offset.… in sampleLinear1DCompare()
1424 …float p0 = execCompare(p0Clr, sampler.compare, sampler.compareChannel, ref, isFixedPointDepthForma… in sampleLinear1DCompare()
1425 …float p1 = execCompare(p1Clr, sampler.compare, sampler.compareChannel, ref, isFixedPointDepthForma… in sampleLinear1DCompare()
1431 static float sampleLinear2DCompare (const ConstPixelBufferAccess& access, const Sampler& sampler, f… in sampleLinear2DCompare() argument
1441 int i0 = wrap(sampler.wrapS, x0, w); in sampleLinear2DCompare()
1442 int i1 = wrap(sampler.wrapS, x1, w); in sampleLinear2DCompare()
1443 int j0 = wrap(sampler.wrapT, y0, h); in sampleLinear2DCompare()
1444 int j1 = wrap(sampler.wrapT, y1, h); in sampleLinear2DCompare()
1449 bool i0UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i0, 0, w); in sampleLinear2DCompare()
1450 bool i1UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i1, 0, w); in sampleLinear2DCompare()
1451 bool j0UseBorder = sampler.wrapT == Sampler::CLAMP_TO_BORDER && !de::inBounds(j0, 0, h); in sampleLinear2DCompare()
1452 bool j1UseBorder = sampler.wrapT == Sampler::CLAMP_TO_BORDER && !de::inBounds(j1, 0, h); in sampleLinear2DCompare()
1455 …Vec4 p00Clr = (i0UseBorder || j0UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(ac… in sampleLinear2DCompare()
1456 …Vec4 p10Clr = (i1UseBorder || j0UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(ac… in sampleLinear2DCompare()
1457 …Vec4 p01Clr = (i0UseBorder || j1UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(ac… in sampleLinear2DCompare()
1458 …Vec4 p11Clr = (i1UseBorder || j1UseBorder) ? lookupBorder(access.getFormat(), sampler) : lookup(ac… in sampleLinear2DCompare()
1461 …float p00 = execCompare(p00Clr, sampler.compare, sampler.compareChannel, ref, isFixedPointDepthFor… in sampleLinear2DCompare()
1462 …float p10 = execCompare(p10Clr, sampler.compare, sampler.compareChannel, ref, isFixedPointDepthFor… in sampleLinear2DCompare()
1463 …float p01 = execCompare(p01Clr, sampler.compare, sampler.compareChannel, ref, isFixedPointDepthFor… in sampleLinear2DCompare()
1464 …float p11 = execCompare(p11Clr, sampler.compare, sampler.compareChannel, ref, isFixedPointDepthFor… in sampleLinear2DCompare()
1473 static Vec4 sampleLinear3D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u, … in sampleLinear3D() argument
1486 int i0 = wrap(sampler.wrapS, x0, width); in sampleLinear3D()
1487 int i1 = wrap(sampler.wrapS, x1, width); in sampleLinear3D()
1488 int j0 = wrap(sampler.wrapT, y0, height); in sampleLinear3D()
1489 int j1 = wrap(sampler.wrapT, y1, height); in sampleLinear3D()
1490 int k0 = wrap(sampler.wrapR, z0, depth); in sampleLinear3D()
1491 int k1 = wrap(sampler.wrapR, z1, depth); in sampleLinear3D()
1497 bool i0UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i0, 0, width); in sampleLinear3D()
1498 bool i1UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i1, 0, width); in sampleLinear3D()
1499 bool j0UseBorder = sampler.wrapT == Sampler::CLAMP_TO_BORDER && !de::inBounds(j0, 0, height); in sampleLinear3D()
1500 bool j1UseBorder = sampler.wrapT == Sampler::CLAMP_TO_BORDER && !de::inBounds(j1, 0, height); in sampleLinear3D()
1501 bool k0UseBorder = sampler.wrapR == Sampler::CLAMP_TO_BORDER && !de::inBounds(k0, 0, depth); in sampleLinear3D()
1502 bool k1UseBorder = sampler.wrapR == Sampler::CLAMP_TO_BORDER && !de::inBounds(k1, 0, depth); in sampleLinear3D()
1505 …Vec4 p000 = (i0UseBorder || j0UseBorder || k0UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1506 …Vec4 p100 = (i1UseBorder || j0UseBorder || k0UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1507 …Vec4 p010 = (i0UseBorder || j1UseBorder || k0UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1508 …Vec4 p110 = (i1UseBorder || j1UseBorder || k0UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1509 …Vec4 p001 = (i0UseBorder || j0UseBorder || k1UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1510 …Vec4 p101 = (i1UseBorder || j0UseBorder || k1UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1511 …Vec4 p011 = (i0UseBorder || j1UseBorder || k1UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1512 …Vec4 p111 = (i1UseBorder || j1UseBorder || k1UseBorder) ? lookupBorder(access.getFormat(), sampler in sampleLinear3D()
1525 Vec4 ConstPixelBufferAccess::sample1D (const Sampler& sampler, Sampler::FilterMode filter, float s,… in sample1D() argument
1530 return sample1DOffset(sampler, filter, s, tcu::IVec2(0, level)); in sample1D()
1533 Vec4 ConstPixelBufferAccess::sample2D (const Sampler& sampler, Sampler::FilterMode filter, float s,… in sample2D() argument
1538 return sample2DOffset(sampler, filter, s, t, tcu::IVec3(0, 0, depth)); in sample2D()
1541 Vec4 ConstPixelBufferAccess::sample3D (const Sampler& sampler, Sampler::FilterMode filter, float s,… in sample3D() argument
1543 return sample3DOffset(sampler, filter, s, t, r, tcu::IVec3(0, 0, 0)); in sample3D()
1546 Vec4 ConstPixelBufferAccess::sample1DOffset (const Sampler& sampler, Sampler::FilterMode filter, fl… in sample1DOffset() argument
1555 if (sampler.normalizedCoords) in sample1DOffset()
1556 u = unnormalize(sampler.wrapS, s, m_size.x()); in sample1DOffset()
1560 case Sampler::NEAREST: return sampleNearest1D (*this, sampler, u, offset); in sample1DOffset()
1561 case Sampler::LINEAR: return sampleLinear1D (*this, sampler, u, offset); in sample1DOffset()
1568 Vec4 ConstPixelBufferAccess::sample2DOffset (const Sampler& sampler, Sampler::FilterMode filter, fl… in sample2DOffset() argument
1578 if (sampler.normalizedCoords) in sample2DOffset()
1580 u = unnormalize(sampler.wrapS, s, m_size.x()); in sample2DOffset()
1581 v = unnormalize(sampler.wrapT, t, m_size.y()); in sample2DOffset()
1586 case Sampler::NEAREST: return sampleNearest2D (*this, sampler, u, v, offset); in sample2DOffset()
1587 case Sampler::LINEAR: return sampleLinear2D (*this, sampler, u, v, offset); in sample2DOffset()
1594 Vec4 ConstPixelBufferAccess::sample3DOffset (const Sampler& sampler, Sampler::FilterMode filter, fl… in sample3DOffset() argument
1601 if (sampler.normalizedCoords) in sample3DOffset()
1603 u = unnormalize(sampler.wrapS, s, m_size.x()); in sample3DOffset()
1604 v = unnormalize(sampler.wrapT, t, m_size.y()); in sample3DOffset()
1605 w = unnormalize(sampler.wrapR, r, m_size.z()); in sample3DOffset()
1610 case Sampler::NEAREST: return sampleNearest3D (*this, sampler, u, v, w, offset); in sample3DOffset()
1611 case Sampler::LINEAR: return sampleLinear3D (*this, sampler, u, v, w, offset); in sample3DOffset()
1618 float ConstPixelBufferAccess::sample1DCompare (const Sampler& sampler, Sampler::FilterMode filter, … in sample1DCompare() argument
1630 if (sampler.normalizedCoords) in sample1DCompare()
1631 u = unnormalize(sampler.wrapS, s, m_size.x()); in sample1DCompare()
1635 …r::NEAREST: return execCompare(sampleNearest1D(*this, sampler, u, offset), sampler.compare, sample… in sample1DCompare()
1636 …case Sampler::LINEAR: return sampleLinear1DCompare(*this, sampler, ref, u, offset, isFixedPointDep… in sample1DCompare()
1643 float ConstPixelBufferAccess::sample2DCompare (const Sampler& sampler, Sampler::FilterMode filter, … in sample2DCompare() argument
1656 if (sampler.normalizedCoords) in sample2DCompare()
1658 u = unnormalize(sampler.wrapS, s, m_size.x()); in sample2DCompare()
1659 v = unnormalize(sampler.wrapT, t, m_size.y()); in sample2DCompare()
1664 …:NEAREST: return execCompare(sampleNearest2D(*this, sampler, u, v, offset), sampler.compare, sampl… in sample2DCompare()
1665 …case Sampler::LINEAR: return sampleLinear2DCompare(*this, sampler, ref, u, v, offset, isFixedPoint… in sample2DCompare()
1710 …y1D (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, int dep… in sampleLevelArray1D() argument
1712 …return sampleLevelArray1DOffset(levels, numLevels, sampler, s, lod, IVec2(0, depth)); // y-offset … in sampleLevelArray1D()
1715 …y2D (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, float t… in sampleLevelArray2D() argument
1717 …return sampleLevelArray2DOffset(levels, numLevels, sampler, s, t, lod, IVec3(0, 0, depth)); // z-o… in sampleLevelArray2D()
1720 …y3D (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, float t… in sampleLevelArray3D() argument
1722 return sampleLevelArray3DOffset(levels, numLevels, sampler, s, t, r, lod, IVec3(0, 0, 0)); in sampleLevelArray3D()
1725 …set (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, float l… in sampleLevelArray1DOffset() argument
1727 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArray1DOffset()
1728 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArray1DOffset()
1732 case Sampler::NEAREST: return levels[0].sample1DOffset(sampler, filterMode, s, offset); in sampleLevelArray1DOffset()
1733 case Sampler::LINEAR: return levels[0].sample1DOffset(sampler, filterMode, s, offset); in sampleLevelArray1DOffset()
1742 return levels[level].sample1DOffset(sampler, levelFilter, s, offset); in sampleLevelArray1DOffset()
1753 tcu::Vec4 t0 = levels[level0].sample1DOffset(sampler, levelFilter, s, offset); in sampleLevelArray1DOffset()
1754 tcu::Vec4 t1 = levels[level1].sample1DOffset(sampler, levelFilter, s, offset); in sampleLevelArray1DOffset()
1765 …set (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, float t… in sampleLevelArray2DOffset() argument
1767 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArray2DOffset()
1768 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArray2DOffset()
1772 case Sampler::NEAREST: return levels[0].sample2DOffset(sampler, filterMode, s, t, offset); in sampleLevelArray2DOffset()
1773 case Sampler::LINEAR: return levels[0].sample2DOffset(sampler, filterMode, s, t, offset); in sampleLevelArray2DOffset()
1782 return levels[level].sample2DOffset(sampler, levelFilter, s, t, offset); in sampleLevelArray2DOffset()
1793 tcu::Vec4 t0 = levels[level0].sample2DOffset(sampler, levelFilter, s, t, offset); in sampleLevelArray2DOffset()
1794 tcu::Vec4 t1 = levels[level1].sample2DOffset(sampler, levelFilter, s, t, offset); in sampleLevelArray2DOffset()
1805 …set (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, float t… in sampleLevelArray3DOffset() argument
1807 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArray3DOffset()
1808 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArray3DOffset()
1812 case Sampler::NEAREST: return levels[0].sample3DOffset(sampler, filterMode, s, t, r, offset); in sampleLevelArray3DOffset()
1813 case Sampler::LINEAR: return levels[0].sample3DOffset(sampler, filterMode, s, t, r, offset); in sampleLevelArray3DOffset()
1822 return levels[level].sample3DOffset(sampler, levelFilter, s, t, r, offset); in sampleLevelArray3DOffset()
1833 tcu::Vec4 t0 = levels[level0].sample3DOffset(sampler, levelFilter, s, t, r, offset); in sampleLevelArray3DOffset()
1834 tcu::Vec4 t1 = levels[level1].sample3DOffset(sampler, levelFilter, s, t, r, offset); in sampleLevelArray3DOffset()
1845 …are (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float ref, float… in sampleLevelArray1DCompare() argument
1847 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArray1DCompare()
1848 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArray1DCompare()
1852 case Sampler::NEAREST: return levels[0].sample1DCompare(sampler, filterMode, ref, s, offset); in sampleLevelArray1DCompare()
1853 case Sampler::LINEAR: return levels[0].sample1DCompare(sampler, filterMode, ref, s, offset); in sampleLevelArray1DCompare()
1862 return levels[level].sample1DCompare(sampler, levelFilter, ref, s, offset); in sampleLevelArray1DCompare()
1873 float t0 = levels[level0].sample1DCompare(sampler, levelFilter, ref, s, offset); in sampleLevelArray1DCompare()
1874 float t1 = levels[level1].sample1DCompare(sampler, levelFilter, ref, s, offset); in sampleLevelArray1DCompare()
1885 …are (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float ref, float… in sampleLevelArray2DCompare() argument
1887 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArray2DCompare()
1888 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArray2DCompare()
1892 case Sampler::NEAREST: return levels[0].sample2DCompare(sampler, filterMode, ref, s, t, offset); in sampleLevelArray2DCompare()
1893 case Sampler::LINEAR: return levels[0].sample2DCompare(sampler, filterMode, ref, s, t, offset); in sampleLevelArray2DCompare()
1902 return levels[level].sample2DCompare(sampler, levelFilter, ref, s, t, offset); in sampleLevelArray2DCompare()
1913 float t0 = levels[level0].sample2DCompare(sampler, levelFilter, ref, s, t, offset); in sampleLevelArray2DCompare()
1914 float t1 = levels[level1].sample2DCompare(sampler, levelFilter, ref, s, t, offset); in sampleLevelArray2DCompare()
1925 static Vec4 fetchGatherArray2DOffsets (const ConstPixelBufferAccess& src, const Sampler& sampler, f… in fetchGatherArray2DOffsets() argument
1931 const float u = unnormalize(sampler.wrapS, s, w); in fetchGatherArray2DOffsets()
1932 const float v = unnormalize(sampler.wrapT, t, h); in fetchGatherArray2DOffsets()
1940 const int sampleX = wrap(sampler.wrapS, x0 + offsets[i].x(), w); in fetchGatherArray2DOffsets()
1941 const int sampleY = wrap(sampler.wrapT, y0 + offsets[i].y(), h); in fetchGatherArray2DOffsets()
1947 pixel = lookupBorder(src.getFormat(), sampler); in fetchGatherArray2DOffsets()
1955 Vec4 gatherArray2DOffsets (const ConstPixelBufferAccess& src, const Sampler& sampler, float s, floa… in gatherArray2DOffsets() argument
1957 DE_ASSERT(sampler.compare == Sampler::COMPAREMODE_NONE); in gatherArray2DOffsets()
1960 return fetchGatherArray2DOffsets(src, sampler, s, t, depth, componentNdx, offsets); in gatherArray2DOffsets()
1963 Vec4 gatherArray2DOffsetsCompare (const ConstPixelBufferAccess& src, const Sampler& sampler, float … in gatherArray2DOffsetsCompare() argument
1965 DE_ASSERT(sampler.compare != Sampler::COMPAREMODE_NONE); in gatherArray2DOffsetsCompare()
1967 DE_ASSERT(sampler.compareChannel == 0); in gatherArray2DOffsetsCompare()
1970 …const Vec4 gathered = fetchGatherArray2DOffsets(src, sampler, s, t, depth, 0 /* component 0: dept… in gatherArray2DOffsetsCompare()
1974 result[i] = execCompare(gathered, sampler.compare, i, ref, isFixedPoint); in gatherArray2DOffsetsCompare()
1979 …eamlessNearest (const ConstPixelBufferAccess& faceAccess, const Sampler& sampler, float s, float t… in sampleCubeSeamlessNearest() argument
1981 Sampler clampingSampler = sampler; in sampleCubeSeamlessNearest()
2180 …Access (&faceAccesses)[CUBEFACE_LAST], CubeFace baseFace, const Sampler& sampler, float s, float t… in sampleCubeSeamlessLinear() argument
2189 if (sampler.normalizedCoords) in sampleCubeSeamlessLinear()
2191 u = unnormalize(sampler.wrapS, s, size); in sampleCubeSeamlessLinear()
2192 v = unnormalize(sampler.wrapT, t, size); in sampleCubeSeamlessLinear()
2211 …st (&faces)[CUBEFACE_LAST], int numLevels, CubeFace face, const Sampler& sampler, float s, float t… in sampleLevelArrayCubeSeamless() argument
2213 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArrayCubeSeamless()
2214 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArrayCubeSeamless()
2219 return sampleCubeSeamlessNearest(faces[face][0], sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2227 return sampleCubeSeamlessLinear(faceAccesses, face, sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2238 return sampleCubeSeamlessNearest(faces[face][level], sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2247 return sampleCubeSeamlessLinear(faceAccesses, face, sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2264 t0 = sampleCubeSeamlessNearest(faces[face][level0], sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2265 t1 = sampleCubeSeamlessNearest(faces[face][level1], sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2279 t0 = sampleCubeSeamlessLinear(faceAccesses0, face, sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2280 t1 = sampleCubeSeamlessLinear(faceAccesses1, face, sampler, s, t, depth); in sampleLevelArrayCubeSeamless()
2292 …NearestCompare (const ConstPixelBufferAccess& faceAccess, const Sampler& sampler, float ref, float… in sampleCubeSeamlessNearestCompare() argument
2294 Sampler clampingSampler = sampler; in sampleCubeSeamlessNearestCompare()
2300 …Access (&faceAccesses)[CUBEFACE_LAST], CubeFace baseFace, const Sampler& sampler, float ref, float… in sampleCubeSeamlessLinearCompare() argument
2309 if (sampler.normalizedCoords) in sampleCubeSeamlessLinearCompare()
2311 u = unnormalize(sampler.wrapS, s, size); in sampleCubeSeamlessLinearCompare()
2312 v = unnormalize(sampler.wrapT, t, size); in sampleCubeSeamlessLinearCompare()
2340 …Compare(faceAccesses[coords.face].getPixel(coords.s, coords.t), sampler.compare, sampler.compareCh… in sampleCubeSeamlessLinearCompare()
2381 …st (&faces)[CUBEFACE_LAST], int numLevels, CubeFace face, const Sampler& sampler, float ref, float… in sampleLevelArrayCubeSeamlessCompare() argument
2383 bool magnified = lod <= sampler.lodThreshold; in sampleLevelArrayCubeSeamlessCompare()
2384 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleLevelArrayCubeSeamlessCompare()
2389 return sampleCubeSeamlessNearestCompare(faces[face][0], sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2397 return sampleCubeSeamlessLinearCompare(faceAccesses, face, sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2408 return sampleCubeSeamlessNearestCompare(faces[face][level], sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2417 return sampleCubeSeamlessLinearCompare(faceAccesses, face, sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2434 t0 = sampleCubeSeamlessNearestCompare(faces[face][level0], sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2435 t1 = sampleCubeSeamlessNearestCompare(faces[face][level1], sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2449 t0 = sampleCubeSeamlessLinearCompare(faceAccesses0, face, sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2450 t1 = sampleCubeSeamlessLinearCompare(faceAccesses1, face, sampler, ref, s, t); in sampleLevelArrayCubeSeamlessCompare()
2472 …s* const levels, int numLevels, int slice, CubeFace face, const Sampler& sampler, float s, float t… in sampleCubeArraySeamless() argument
2475 const bool magnified = lod <= sampler.lodThreshold; in sampleCubeArraySeamless()
2476 const Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleCubeArraySeamless()
2481 return sampleCubeSeamlessNearest(levels[0], sampler, s, t, faceDepth); in sampleCubeArraySeamless()
2489 return sampleCubeSeamlessLinear(faceAccesses, face, sampler, s, t, 0); in sampleCubeArraySeamless()
2500 return sampleCubeSeamlessNearest(levels[level], sampler, s, t, faceDepth); in sampleCubeArraySeamless()
2509 return sampleCubeSeamlessLinear(faceAccesses, face, sampler, s, t, 0); in sampleCubeArraySeamless()
2526 t0 = sampleCubeSeamlessNearest(levels[level0], sampler, s, t, faceDepth); in sampleCubeArraySeamless()
2527 t1 = sampleCubeSeamlessNearest(levels[level1], sampler, s, t, faceDepth); in sampleCubeArraySeamless()
2541 t0 = sampleCubeSeamlessLinear(faceAccesses0, face, sampler, s, t, 0); in sampleCubeArraySeamless()
2542 t1 = sampleCubeSeamlessLinear(faceAccesses1, face, sampler, s, t, 0); in sampleCubeArraySeamless()
2554 …s* const levels, int numLevels, int slice, CubeFace face, const Sampler& sampler, float ref, float… in sampleCubeArraySeamlessCompare() argument
2557 const bool magnified = lod <= sampler.lodThreshold; in sampleCubeArraySeamlessCompare()
2558 Sampler::FilterMode filterMode = magnified ? sampler.magFilter : sampler.minFilter; in sampleCubeArraySeamlessCompare()
2563 return sampleCubeSeamlessNearestCompare(levels[0], sampler, ref, s, t, faceDepth); in sampleCubeArraySeamlessCompare()
2571 return sampleCubeSeamlessLinearCompare(faceAccesses, face, sampler, ref, s, t); in sampleCubeArraySeamlessCompare()
2582 return sampleCubeSeamlessNearestCompare(levels[level], sampler, ref, s, t, faceDepth); in sampleCubeArraySeamlessCompare()
2591 return sampleCubeSeamlessLinearCompare(faceAccesses, face, sampler, ref, s, t); in sampleCubeArraySeamlessCompare()
2608 t0 = sampleCubeSeamlessNearestCompare(levels[level0], sampler, ref, s, t, faceDepth); in sampleCubeArraySeamlessCompare()
2609 t1 = sampleCubeSeamlessNearestCompare(levels[level1], sampler, ref, s, t, faceDepth); in sampleCubeArraySeamlessCompare()
2623 t0 = sampleCubeSeamlessLinearCompare(faceAccesses0, face, sampler, ref, s, t); in sampleCubeArraySeamlessCompare()
2624 t1 = sampleCubeSeamlessLinearCompare(faceAccesses1, face, sampler, ref, s, t); in sampleCubeArraySeamlessCompare()
2833 tcu::Vec4 TextureCubeView::sample (const Sampler& sampler, float s, float t, float r, float lod) co… in sample() argument
2835 DE_ASSERT(sampler.compare == Sampler::COMPAREMODE_NONE); in sample()
2839 if (sampler.seamlessCubeMap) in sample()
2840 …return sampleLevelArrayCubeSeamless(m_levels, m_numLevels, coords.face, sampler, coords.s, coords.… in sample()
2842 …return sampleLevelArray2D(m_levels[coords.face], m_numLevels, sampler, coords.s, coords.t, 0 /* de… in sample()
2845 float TextureCubeView::sampleCompare (const Sampler& sampler, float ref, float s, float t, float r,… in sampleCompare() argument
2847 DE_ASSERT(sampler.compare != Sampler::COMPAREMODE_NONE); in sampleCompare()
2851 if (sampler.seamlessCubeMap) in sampleCompare()
2852 …return sampleLevelArrayCubeSeamlessCompare(m_levels, m_numLevels, coords.face, sampler, ref, coord… in sampleCompare()
2854 …return sampleLevelArray2DCompare(m_levels[coords.face], m_numLevels, sampler, ref, coords.s, coord… in sampleCompare()
2857 Vec4 TextureCubeView::gather (const Sampler& sampler, float s, float t, float r, int componentNdx) … in gather() argument
2859 DE_ASSERT(sampler.compare == Sampler::COMPAREMODE_NONE); in gather()
2871 if (sampler.normalizedCoords) in gather()
2873 u = unnormalize(sampler.wrapS, coords.s, size); in gather()
2874 v = unnormalize(sampler.wrapT, coords.t, size); in gather()
2888 Vec4 TextureCubeView::gatherCompare (const Sampler& sampler, float ref, float s, float t, float r) … in gatherCompare() argument
2890 DE_ASSERT(sampler.compare != Sampler::COMPAREMODE_NONE); in gatherCompare()
2892 DE_ASSERT(sampler.compareChannel == 0); in gatherCompare()
2894 Sampler noCompareSampler = sampler; in gatherCompare()
2901 result[i] = execCompare(gathered, sampler.compare, i, ref, isFixedPoint); in gatherCompare()
3028 Vec4 Texture1DArrayView::sample (const Sampler& sampler, float s, float t, float lod) const in sample() argument
3030 return sampleLevelArray1D(m_levels, m_numLevels, sampler, s, selectLayer(t), lod); in sample()
3033 Vec4 Texture1DArrayView::sampleOffset (const Sampler& sampler, float s, float t, float lod, deInt32… in sampleOffset() argument
3035 …return sampleLevelArray1DOffset(m_levels, m_numLevels, sampler, s, lod, IVec2(offset, selectLayer(… in sampleOffset()
3038 float Texture1DArrayView::sampleCompare (const Sampler& sampler, float ref, float s, float t, float… in sampleCompare() argument
3040 …return sampleLevelArray1DCompare(m_levels, m_numLevels, sampler, ref, s, lod, IVec2(0, selectLayer… in sampleCompare()
3043 float Texture1DArrayView::sampleCompareOffset (const Sampler& sampler, float ref, float s, float t,… in sampleCompareOffset() argument
3045 …return sampleLevelArray1DCompare(m_levels, m_numLevels, sampler, ref, s, lod, IVec2(offset, select… in sampleCompareOffset()
3062 Vec4 Texture2DArrayView::sample (const Sampler& sampler, float s, float t, float r, float lod) const in sample() argument
3064 return sampleLevelArray2D(m_levels, m_numLevels, sampler, s, t, selectLayer(r), lod); in sample()
3067 float Texture2DArrayView::sampleCompare (const Sampler& sampler, float ref, float s, float t, float… in sampleCompare() argument
3069 …return sampleLevelArray2DCompare(m_levels, m_numLevels, sampler, ref, s, t, lod, IVec3(0, 0, selec… in sampleCompare()
3072 Vec4 Texture2DArrayView::sampleOffset (const Sampler& sampler, float s, float t, float r, float lod… in sampleOffset() argument
3074 …return sampleLevelArray2DOffset(m_levels, m_numLevels, sampler, s, t, lod, IVec3(offset.x(), offse… in sampleOffset()
3077 float Texture2DArrayView::sampleCompareOffset (const Sampler& sampler, float ref, float s, float t,… in sampleCompareOffset() argument
3079 …return sampleLevelArray2DCompare(m_levels, m_numLevels, sampler, ref, s, t, lod, IVec3(offset.x(),… in sampleCompareOffset()
3082 Vec4 Texture2DArrayView::gatherOffsets (const Sampler& sampler, float s, float t, float r, int comp… in gatherOffsets() argument
3084 return gatherArray2DOffsets(m_levels[0], sampler, s, t, selectLayer(r), componentNdx, offsets); in gatherOffsets()
3087 Vec4 Texture2DArrayView::gatherOffsetsCompare (const Sampler& sampler, float ref, float s, float t,… in gatherOffsetsCompare() argument
3089 return gatherArray2DOffsetsCompare(m_levels[0], sampler, ref, s, t, selectLayer(r), offsets); in gatherOffsetsCompare()
3260 tcu::Vec4 TextureCubeArrayView::sample (const Sampler& sampler, float s, float t, float r, float q,… in sample() argument
3266 DE_ASSERT(sampler.compare == Sampler::COMPAREMODE_NONE); in sample()
3268 if (sampler.seamlessCubeMap) in sample()
3269 …return sampleCubeArraySeamless(m_levels, m_numLevels, layer, coords.face, sampler, coords.s, coord… in sample()
3271 return sampleLevelArray2D(m_levels, m_numLevels, sampler, coords.s, coords.t, faceDepth, lod); in sample()
3274 float TextureCubeArrayView::sampleCompare (const Sampler& sampler, float ref, float s, float t, flo… in sampleCompare() argument
3280 DE_ASSERT(sampler.compare != Sampler::COMPAREMODE_NONE); in sampleCompare()
3282 if (sampler.seamlessCubeMap) in sampleCompare()
3283 …return sampleCubeArraySeamlessCompare(m_levels, m_numLevels, layer, coords.face, sampler, ref, coo… in sampleCompare()
3285 …return sampleLevelArray2DCompare(m_levels, m_numLevels, sampler, ref, coords.s, coords.t, lod, IVe… in sampleCompare()