/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | PackedVectorTest.cpp | 34 PackedVector<unsigned, 2> Vec2(3); in TEST() local 35 EXPECT_EQ(3U, Vec2.size()); in TEST() 36 EXPECT_FALSE(Vec2.empty()); in TEST() 52 EXPECT_FALSE(Vec == Vec2); in TEST() 53 EXPECT_TRUE(Vec != Vec2); in TEST() 55 Vec2.swap(Vec); in TEST() 62 EXPECT_EQ(2U, Vec2[0]); in TEST() 63 EXPECT_EQ(0U, Vec2[1]); in TEST() 64 EXPECT_EQ(1U, Vec2[2]); in TEST() 65 EXPECT_EQ(3U, Vec2[3]); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | PackedVectorTest.cpp | 34 PackedVector<unsigned, 2> Vec2(3); in TEST() local 35 EXPECT_EQ(3U, Vec2.size()); in TEST() 36 EXPECT_FALSE(Vec2.empty()); in TEST() 52 EXPECT_FALSE(Vec == Vec2); in TEST() 53 EXPECT_TRUE(Vec != Vec2); in TEST() 55 Vec = Vec2; in TEST() 56 EXPECT_TRUE(Vec == Vec2); in TEST() 57 EXPECT_FALSE(Vec != Vec2); in TEST() 60 Vec2[1] = 2; in TEST() 61 Vec |= Vec2; in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | PackedVectorTest.cpp | 34 PackedVector<unsigned, 2> Vec2(3); in TEST() local 35 EXPECT_EQ(3U, Vec2.size()); in TEST() 36 EXPECT_FALSE(Vec2.empty()); in TEST() 52 EXPECT_FALSE(Vec == Vec2); in TEST() 53 EXPECT_TRUE(Vec != Vec2); in TEST() 55 Vec = Vec2; in TEST() 56 EXPECT_TRUE(Vec == Vec2); in TEST() 57 EXPECT_FALSE(Vec != Vec2); in TEST() 60 Vec2[1] = 2; in TEST() 61 Vec |= Vec2; in TEST() [all …]
|
/external/deqp/framework/common/ |
D | tcuTexLookupVerifier.hpp | 106 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dudy, const LodPrecision& prec); 107 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dudy, const f… 108 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dwdx, const f… 109 Vec2 computeCubeLodBoundsFromDerivates (const Vec3& coord, const Vec3& coordDx, const Vec3& coordD… 111 Vec2 clampLodBounds (const Vec2& lodBounds, const Vec2& lodMinMax, const LodPrecision& prec); 113 …t Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const V… 114 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound… 115 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V… 116 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound… 117 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V… [all …]
|
D | tcuRasterizationVerifier.cpp | 82 const tcu::Vec2 u (p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w()); in isTriangleClockwise() 83 const tcu::Vec2 v (p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise() 100 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) in pixelNearLineSegment() 102 const tcu::Vec2 pixelCenterPosition = tcu::Vec2((float)pixel.x() + 0.5f, (float)pixel.y() + 0.5f); in pixelNearLineSegment() 110 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment() 111 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment() 141 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in pixelOnlyOnASharedEdge() 143 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge() 144 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge() 145 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge() [all …]
|
D | tcuTexLookupVerifier.cpp | 251 const Vec2& fBounds, in isLinearRangeValid() 289 const Vec2& xBounds, in isBilinearRangeValid() 290 const Vec2& yBounds, in isBilinearRangeValid() 318 const Vec2& xBounds, in isTrilinearRangeValid() 319 const Vec2& yBounds, in isTrilinearRangeValid() 320 const Vec2& zBounds, in isTrilinearRangeValid() 400 const Vec2& xBounds0, in is1DTrilinearFilterResultValid() 401 const Vec2& xBounds1, in is1DTrilinearFilterResultValid() 402 const Vec2& zBounds, in is1DTrilinearFilterResultValid() 437 const Vec2& xBounds0, in is2DTrilinearFilterResultValid() [all …]
|
D | tcuTexCompareVerifier.cpp | 194 const Vec2& depths, in isLinearCompareValid() 195 const Vec2& fBounds, in isLinearCompareValid() 290 const Vec2& xBounds, in isBilinearPCFCompareValid() 291 const Vec2& yBounds, in isBilinearPCFCompareValid() 363 const Vec2& xBounds, in isBilinearCompareValid() 364 const Vec2& yBounds, in isBilinearCompareValid() 424 const Vec2& xBounds0, in isTrilinearPCFCompareValid() 425 const Vec2& yBounds0, in isTrilinearPCFCompareValid() 426 const Vec2& xBounds1, in isTrilinearPCFCompareValid() 427 const Vec2& yBounds1, in isTrilinearPCFCompareValid() [all …]
|
D | tcuTexCompareVerifier.hpp | 55 …, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBound… 56 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f… 57 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f… 59 … texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2…
|
/external/deqp/modules/gles2/functional/ |
D | es2fMultisampleTests.cpp | 50 using tcu::Vec2; 65 Vec2 p0; 66 Vec2 p1; 67 Vec2 p2; 68 Vec2 p3; 70 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners() 189 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve… 190 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const; 191 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&… 192 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&… [all …]
|
D | es2fVertexTextureTests.cpp | 46 using tcu::Vec2; 109 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords() 111 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords() 149 Vec2 scale; 150 Vec2 bias; 152 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams() 158 Vec2 scale; 159 Vec2 bias; 162 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams() 197 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr() [all …]
|
D | es2fTextureMipmapTests.cpp | 53 using tcu::Vec2; 191 Vec2 bottomLeft; in getBasicTexCoord2D() 192 Vec2 topRight; in getBasicTexCoord2D() 195 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D() 196 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D() 197 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D() 198 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D() 200 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D() 201 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D() 202 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D() [all …]
|
/external/deqp/modules/gles2/accuracy/ |
D | es2aTextureMipmapTests.cpp | 53 using tcu::Vec2; 188 Vec2 bottomLeft; in getBasicTexCoord2D() 189 Vec2 topRight; in getBasicTexCoord2D() 192 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D() 193 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D() 194 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D() 195 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D() 197 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D() 198 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D() 199 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D() [all …]
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aTextureMipmapTests.cpp | 50 using tcu::Vec2; 179 Vec2 bottomLeft; in getBasicTexCoord2D() 180 Vec2 topRight; in getBasicTexCoord2D() 183 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D() 184 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D() 185 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D() 186 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D() 188 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D() 189 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D() 190 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D() [all …]
|
D | es3aTextureFilteringTests.cpp | 231 computeQuadTexCoord2D(texCoord, tcu::Vec2(-4.0f, -4.5f), tcu::Vec2(4.0f, 2.5f)); in iterate() 242 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate() 271 computeQuadTexCoord2D(texCoord, tcu::Vec2(sMin, tMin), tcu::Vec2(sMin+sRange, tMin+tRange)); in iterate() 282 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate() 486 const tcu::Vec2& bottomLeft, in renderFaces() 487 const tcu::Vec2& topRight, in renderFaces() 488 const tcu::Vec2& texCoordTopRightFactor) in renderFaces() 576 m_onlySampleFaceInterior ? tcu::Vec2(-0.81f, -0.81f) : tcu::Vec2(-0.975f, -0.975f), in iterate() 577 m_onlySampleFaceInterior ? tcu::Vec2( 0.8f, 0.8f) : tcu::Vec2( 0.975f, 0.975f), in iterate() 578 !m_onlySampleFaceInterior ? tcu::Vec2(1.3f, 1.25f) : tcu::Vec2(1.0f, 1.0f)); in iterate() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fMultisampleTests.cpp | 45 using tcu::Vec2; 141 tcu::Vec2 samplePos = tcu::Vec2(-1, -1); in iterate() 177 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const… 178 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) co… 179 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve… 180 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve… 346 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle() 354 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle() 359 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad() 365 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad() [all …]
|
D | es31fTextureFilteringTests.cpp | 139 tcu::Vec2 bottomLeft; 140 tcu::Vec2 topRight; 141 tcu::Vec2 layerRange; 148 …onst glu::TextureCubeArray* tex_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRight_, const … in FilterCase() 276 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5… in init() 277 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(0.5f, 0.65f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5f… in init() 278 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(floa… in init() 279 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(0.2f, 0.2f), tcu::Vec2(0.6f, 0.5f), tcu::Vec2(float(… in init() 287 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.25f, -1.2f), tcu::Vec2(1.2f, 1.25f), tcu::Vec2(-0.… in init() 289 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.19f, -1.3f), tcu::Vec2(1.1f, 1.35f), tcu::Vec2(-0.… in init() [all …]
|
D | es31fShaderCommonFunctionTests.cpp | 49 using tcu::Vec2; 510 const Vec2 floatRanges[] = in getInputValues() 512 Vec2(-2.0f, 2.0f), // lowp in getInputValues() 513 Vec2(-1e3f, 1e3f), // mediump in getInputValues() 514 Vec2(-1e7f, 1e7f) // highp in getInputValues() 592 const Vec2 floatRanges[] = in getInputValues() 594 Vec2(-2.0f, 2.0f), // lowp in getInputValues() 595 Vec2(-1e4f, 1e4f), // mediump - note: may end up as inf in getInputValues() 596 Vec2(-1e8f, 1e8f) // highp - note: may end up as inf in getInputValues() 698 const Vec2 ranges[] = in getInputValues() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fMultisampleTests.cpp | 51 using tcu::Vec2; 67 Vec2 p0; 68 Vec2 p1; 69 Vec2 p2; 70 Vec2 p3; 72 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners() 213 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve… 214 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const; 215 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&… 216 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&… [all …]
|
D | es3fVertexTextureTests.cpp | 45 using tcu::Vec2; 126 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords() 128 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords() 182 Vec2 scale; 183 Vec2 bias; 185 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams() 191 Vec2 scale; 192 Vec2 bias; 195 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams() 246 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr() [all …]
|
D | es3fShaderPackingFunctionTests.cpp | 160 std::vector<tcu::Vec2> inputs; in iterate() 167 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate() 168 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate() 169 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate() 170 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate() 171 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate() 178 inputs.push_back(tcu::Vec2(x, y)); in iterate() 186 inputs.push_back(tcu::Vec2(x, y)); in iterate() 265 std::vector<tcu::Vec2> outputs; in iterate() 351 std::vector<tcu::Vec2> inputs; in iterate() [all …]
|
/external/deqp/framework/opengl/ |
D | gluTextureTestUtil.cpp | 1019 void computeQuadTexCoord2D (std::vector<float>& dst, const tcu::Vec2& bottomLeft, const tcu::Vec2& … in computeQuadTexCoord2D() 1029 …d2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoord2DArray() 1124 …be (std::vector<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoordCube() 1164 …r<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight, const t… in computeQuadTexCoordCubeArray() 1252 …const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams… in computeTextureLookupDiff() 1256 const tcu::Vec2 lodOffsets[] = in computeTextureLookupDiff() 1258 tcu::Vec2(-1, 0), in computeTextureLookupDiff() 1259 tcu::Vec2(+1, 0), in computeTextureLookupDiff() 1260 tcu::Vec2( 0, -1), in computeTextureLookupDiff() 1261 tcu::Vec2( 0, +1), in computeTextureLookupDiff() [all …]
|
/external/clang/test/CodeGen/ |
D | arm_function_epilog.cpp | 4 struct Vec2 { struct 12 Vec2 getVec2() { in getVec2() 13 Vec2 out; in getVec2() 14 union { Vec2* v; unsigned char* u; } x; in getVec2()
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktSampleVerifierUtil.hpp | 47 tcu::Vec2 calcLodBounds (const tcu::Vec3& dPdx, 53 tcu::UVec2 calcLevelBounds (const tcu::Vec2& lodBounds, 56 tcu::Vec2 calcLevelLodBounds (const tcu::Vec2& lodBounds, 81 tcu::Vec2& coordFace, 82 tcu::Vec2& dPdxFace, 83 tcu::Vec2& dPdyFace);
|
/external/deqp/modules/gles2/scripts/ |
D | genutil.py | 226 def toVec2(self): return Vec2(self.x, self.x) 283 elif isinstance(val, Vec2): 284 return Vec2(self.x * val.x, self.x * val.y) 295 elif isinstance(val, Vec2): 296 return Vec2(self.x / val.x, self.x / val.y) 309 elif (len(lst) == 2): return Vec2(lst[0], lst[1]) 331 class Vec2(Vec): class 337 def applyUnary(self, func): return Vec2(func(self.x), func(self.y)) 338 def applyBinary(self, func, other): return Vec2(func(self.x, other.x), func(self.y, other.y)) 342 def toVec2(self): return Vec2(self.x, self.y) [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderBuiltinVarTests.cpp | 1281 static bool pixelOffsetCompare (const Vec2& a, const Vec2& b) in pixelOffsetCompare() 1294 static const Vec2 sampleCount1Bit[] = in validateSampleLocations() 1296 Vec2(0.5f, 0.5f) in validateSampleLocations() 1299 static const Vec2 sampleCount2Bit[] = in validateSampleLocations() 1301 Vec2(0.25f, 0.25f), Vec2(0.75f, 0.75f) in validateSampleLocations() 1304 static const Vec2 sampleCount4Bit[] = in validateSampleLocations() 1306 Vec2(0.375f, 0.125f), Vec2(0.875f, 0.375f), Vec2(0.125f, 0.625f), Vec2(0.625f, 0.875f) in validateSampleLocations() 1309 static const Vec2 sampleCount8Bit[] = in validateSampleLocations() 1311 Vec2(0.5625f, 0.3125f), Vec2(0.4375f, 0.6875f), Vec2(0.8125f,0.5625f), Vec2(0.3125f, 0.1875f), in validateSampleLocations() 1312 Vec2(0.1875f, 0.8125f), Vec2(0.0625f, 0.4375f), Vec2(0.6875f,0.9375f), Vec2(0.9375f, 0.0625f) in validateSampleLocations() [all …]
|