Home
last modified time | relevance | path

Searched refs:triNdx (Results 1 – 16 of 16) sorted by relevance

/external/deqp/framework/opengl/
DgluTextureTestUtil.cpp415 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule. in sampleTextureNonProjected() local
416 float triX = triNdx ? 1.0f-xf : xf; in sampleTextureNonProjected()
417 float triY = triNdx ? 1.0f-yf : yf; in sampleTextureNonProjected()
419 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY); in sampleTextureNonProjected()
420 float lod = triLod[triNdx]; in sampleTextureNonProjected()
451 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule. in sampleTextureNonProjected() local
452 float triX = triNdx ? 1.0f-xf : xf; in sampleTextureNonProjected()
453 float triY = triNdx ? 1.0f-yf : yf; in sampleTextureNonProjected()
455 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY); in sampleTextureNonProjected()
456 float t = triangleInterpolate(triT[triNdx].x(), triT[triNdx].y(), triT[triNdx].z(), triX, triY); in sampleTextureNonProjected()
[all …]
/external/deqp/modules/gles2/accuracy/
Des2aVaryingInterpolationTests.cpp83 int triNdx = nx + ny >= 1.0f ? 1 : 0; in renderReference() local
84 float triNx = triNdx ? 1.0f - nx : nx; in renderReference()
85 float triNy = triNdx ? 1.0f - ny : ny; in renderReference()
87 … float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference()
88 … float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference()
89 … float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference()
/external/deqp/modules/gles3/accuracy/
Des3aVaryingInterpolationTests.cpp85 int triNdx = nx + ny >= 1.0f ? 1 : 0; in renderReference() local
86 float triNx = triNdx ? 1.0f - nx : nx; in renderReference()
87 float triNy = triNdx ? 1.0f - ny : ny; in renderReference()
89 … float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference()
90 … float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference()
91 … float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderInvarianceTests.cpp178 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in iterate() local
184 vertices[triNdx * 3 + 0] = vertex1; in iterate()
185 vertices[triNdx * 3 + 1] = vertex2; in iterate()
186 vertices[triNdx * 3 + 2] = vertex3; in iterate()
190 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in iterate() local
192 vertices[(numTriangles + triNdx) * 3 + 0] = genRandomVector(rnd); in iterate()
193 vertices[(numTriangles + triNdx) * 3 + 1] = genRandomVector(rnd); in iterate()
194 vertices[(numTriangles + triNdx) * 3 + 2] = genRandomVector(rnd); in iterate()
/external/deqp/modules/gles3/functional/
Des3fShaderInvarianceTests.cpp212 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in init() local
218 triangles[triNdx*3 + 0] = vertex1; in init()
219 triangles[triNdx*3 + 1] = vertex2; in init()
220 triangles[triNdx*3 + 2] = vertex3; in init()
224 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in init() local
226 triangles[(numTriangles + triNdx)*3 + 0] = genRandomVector(rnd); in init()
227 triangles[(numTriangles + triNdx)*3 + 1] = genRandomVector(rnd); in init()
228 triangles[(numTriangles + triNdx)*3 + 2] = genRandomVector(rnd); in init()
Des3fShaderBuiltinVarTests.cpp850 const int triNdx = vtxNdx/3; in init() local
851 const int quadNdx = triNdx/2; in init()
858 if (triNdx%2 == 0) in init()
Des3fTransformFeedbackTests.cpp694 int triNdx = outNdx/3; in getAttributeIndex() local
696 return (triNdx%2 != 0 && vtxNdx < 2) ? (triNdx+1-vtxNdx) : (triNdx+vtxNdx); in getAttributeIndex()
/external/deqp/modules/gles2/functional/
Des2fShaderInvarianceTests.cpp212 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in init() local
218 triangles[triNdx*3 + 0] = vertex1; in init()
219 triangles[triNdx*3 + 1] = vertex2; in init()
220 triangles[triNdx*3 + 2] = vertex3; in init()
224 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in init() local
226 triangles[(numTriangles + triNdx)*3 + 0] = genRandomVector(rnd); in init()
227 triangles[(numTriangles + triNdx)*3 + 1] = genRandomVector(rnd); in init()
228 triangles[(numTriangles + triNdx)*3 + 2] = genRandomVector(rnd); in init()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureSwizzleTests.cpp206 const int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule in iterate() local
207 const float triX = triNdx ? 1.0f-xf : xf; in iterate()
208 const float triY = triNdx ? 1.0f-yf : yf; in iterate()
210 …const float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, t… in iterate()
211 …const float t = triangleInterpolate(triT[triNdx].x(), triT[triNdx].y(), triT[triNdx].z(), triX, t… in iterate()
212 const float lod = triLod[triNdx]; in iterate()
/external/deqp/modules/gles31/functional/
Des31fMultisampleTests.cpp494 for (int triNdx = 0; triNdx < numTriangles; triNdx++) in drawPattern() local
496 const float angle0 = 2.0f*DE_PI * (float)triNdx / (float)numTriangles; in drawPattern()
497 const float angle1 = 2.0f*DE_PI * ((float)triNdx + 0.5f) / (float)numTriangles; in drawPattern()
498 const Vec4 color = Vec4(0.4f + (float)triNdx/(float)numTriangles*0.6f, in drawPattern()
499 0.5f + (float)triNdx/(float)numTriangles*0.3f, in drawPattern()
500 0.6f - (float)triNdx/(float)numTriangles*0.5f, in drawPattern()
501 0.7f - (float)triNdx/(float)numTriangles*0.7f); in drawPattern()
510 const GLbitfield rawMask = (GLbitfield)deUint32Hash(wordNdx * 32 + triNdx); in drawPattern()
Des31fTessellationTests.cpp1481 for (int triNdx = 0; triNdx < numTriangles; triNdx++) in compareTriangleSets() local
1483 Triangle triangle(coords[3*triNdx + 0], in compareTriangleSets()
1484 coords[3*triNdx + 1], in compareTriangleSets()
1485 coords[3*triNdx + 2]); in compareTriangleSets()
/external/deqp/modules/egl/
DteglRenderTests.cpp172 for (int triNdx = 0; triNdx < drawOp.count; triNdx++) in randomizeDrawOp() local
180 tcu::Vec4& position = drawOp.positions[triNdx*3 + coordNdx]; in randomizeDrawOp()
181 tcu::Vec4& color = drawOp.colors[triNdx*3 + coordNdx]; in randomizeDrawOp()
203 tcu::Vec4& p0 = drawOp.positions[triNdx*3 + 0]; in randomizeDrawOp()
204 tcu::Vec4& p1 = drawOp.positions[triNdx*3 + 1]; in randomizeDrawOp()
205 tcu::Vec4& p2 = drawOp.positions[triNdx*3 + 2]; in randomizeDrawOp()
/external/deqp/framework/common/
DtcuRasterizationVerifier.cpp708 for (int triNdx = (int)scene.triangles.size() - 1; triNdx >= 0; --triNdx) in verifyTriangleGroupInterpolationWithInterpolator() local
710 const CoverageType coverage = calculateTriangleCoverage(scene.triangles[triNdx].positions[0], in verifyTriangleGroupInterpolationWithInterpolator()
711 scene.triangles[triNdx].positions[1], in verifyTriangleGroupInterpolationWithInterpolator()
712 scene.triangles[triNdx].positions[2], in verifyTriangleGroupInterpolationWithInterpolator()
721 …const InterpolationRange weights = interpolator.interpolate(triNdx, tcu::IVec2(x, y), viewportSize… in verifyTriangleGroupInterpolationWithInterpolator()
723 …ec4 fragmentColorMax = de::clamp(weights.max.x(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[0] + in verifyTriangleGroupInterpolationWithInterpolator()
724 de::clamp(weights.max.y(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[1] + in verifyTriangleGroupInterpolationWithInterpolator()
725 de::clamp(weights.max.z(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[2]; in verifyTriangleGroupInterpolationWithInterpolator()
726 …ec4 fragmentColorMin = de::clamp(weights.min.x(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[0] + in verifyTriangleGroupInterpolationWithInterpolator()
727 de::clamp(weights.min.y(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[1] + in verifyTriangleGroupInterpolationWithInterpolator()
[all …]
/external/deqp/modules/glshared/
DglsLongStressCase.cpp1042 for (int triNdx = 0; triNdx < numVertices-2; triNdx++) in generateRandomPositionAttribData() local
1044 float* const vtxAComps = &data[(triNdx+0)*numComponents]; in generateRandomPositionAttribData()
1045 float* const vtxBComps = &data[(triNdx+1)*numComponents]; in generateRandomPositionAttribData()
1046 float* const vtxCComps = &data[(triNdx+2)*numComponents]; in generateRandomPositionAttribData()
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationInvarianceTests.cpp1178 for (int triNdx = 0; triNdx < numTriangles; ++triNdx) in compareTriangleSets() local
1180 Triangle triangle = makeTriangle(primitives[triNdx]); in compareTriangleSets()
/external/deqp/external/vulkancts/modules/vulkan/rasterization/
DvktRasterizationTests.cpp5166 for (int triNdx = 0; triNdx < (int)outTriangles.size(); ++triNdx) in extractLines() local
5171 line.positions[0] = outTriangles.at(triNdx).positions[vrtxNdx]; in extractLines()
5172 line.positions[1] = outTriangles.at(triNdx).positions[vrtxNdx + 1]; in extractLines()
5177 line.positions[0] = outTriangles.at(triNdx).positions[2]; in extractLines()
5178 line.positions[1] = outTriangles.at(triNdx).positions[0]; in extractLines()
5186 for (int triNdx = 0; triNdx < (int)outTriangles.size(); ++triNdx) in extractPoints() local
5191 point.position = outTriangles.at(triNdx).positions[vrtxNdx]; in extractPoints()