/external/deqp/modules/gles2/functional/ |
D | es2fRasterizationTests.cpp | 811 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local 815 << "\t" << outData[vtxNdx] in generateTriangles() 880 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local 884 << "\t" << outData[vtxNdx] in generateTriangles() 1010 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local 1014 << "\t" << outData[vtxNdx] in generateLines() 1073 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local 1077 << "\t" << outData[vtxNdx] in generateLines() 1435 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateVertices() local 1437 outData[vtxNdx].x() = rnd.getFloat(-0.9f, 0.9f); in generateVertices() [all …]
|
D | es2fBufferTestUtil.cpp | 362 static inline tcu::Vec4 fetchVtxColor (const deUint8* ptr, int vtxNdx) in fetchVtxColor() argument 364 return tcu::RGBA(*(ptr + vtxNdx*3 + 0), in fetchVtxColor() 365 *(ptr + vtxNdx*3 + 1), in fetchVtxColor() 366 *(ptr + vtxNdx*3 + 2), in fetchVtxColor()
|
/external/deqp/modules/gles3/functional/ |
D | es3fRasterizationTests.cpp | 960 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local 964 << "\t" << outData[vtxNdx] in generateTriangles() 1029 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local 1033 << "\t" << outData[vtxNdx] in generateTriangles() 1159 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local 1163 << "\t" << outData[vtxNdx] in generateLines() 1222 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local 1226 << "\t" << outData[vtxNdx] in generateLines() 1584 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateVertices() local 1586 outData[vtxNdx].x() = rnd.getFloat(-0.9f, 0.9f); in generateVertices() [all …]
|
D | es3fShaderBuiltinVarTests.cpp | 845 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx += 3) in init() local 850 const int triNdx = vtxNdx/3; in init() 860 m_positions[vtxNdx+0] = tcu::Vec4(x0, y0, 0.0f, 1.0f); in init() 861 m_positions[vtxNdx+1] = tcu::Vec4(x0+w, y0+h, 0.0f, 1.0f); in init() 862 m_positions[vtxNdx+2] = tcu::Vec4(x0, y0+h, 0.0f, 1.0f); in init() 866 m_positions[vtxNdx+0] = tcu::Vec4(x0+w, y0+h, 0.0f, 1.0f); in init() 867 m_positions[vtxNdx+1] = tcu::Vec4(x0, y0, 0.0f, 1.0f); in init() 868 m_positions[vtxNdx+2] = tcu::Vec4(x0+w, y0, 0.0f, 1.0f); in init()
|
D | es3fTransformFeedbackTests.cpp | 695 int vtxNdx = outNdx%3; in getAttributeIndex() local 696 return (triNdx%2 != 0 && vtxNdx < 2) ? (triNdx+1-vtxNdx) : (triNdx+vtxNdx); in getAttributeIndex()
|
/external/deqp/framework/randomshaders/ |
D | rsgProgramExecutor.cpp | 50 ValueAccess getValue (const VariableType& type, int vtxNdx); 51 ConstValueAccess getValue (const VariableType& type, int vtxNdx) const; 62 ValueAccess VaryingStorage::getValue (const VariableType& type, int vtxNdx) in getValue() argument 64 return ValueAccess(type, &m_value[type.getScalarSize()*vtxNdx]); in getValue() 67 ConstValueAccess VaryingStorage::getValue (const VariableType& type, int vtxNdx) const in getValue() 69 return ConstValueAccess(type, &m_value[type.getScalarSize()*vtxNdx]); in getValue() 243 for (int vtxNdx = packetStart; vtxNdx < packetEnd; vtxNdx++) in execute() local 245 int y = (vtxNdx/gridVtxWidth); in execute() 246 int x = vtxNdx - y*gridVtxWidth; in execute() 250 interpolateVertexInput(access, vtxNdx-packetStart, input->getValueRange(), xf, yf); in execute() [all …]
|
/external/deqp/modules/gles3/stress/ |
D | es3sOcclusionQueryTests.cpp | 188 int vtxNdx = m_rnd.getInt(0, NUM_GENERATED_VERTICES-1); in iterate() local 189 occluderVertices[4*i ] = vertices[4*vtxNdx]; in iterate() 190 occluderVertices[4*i + 1] = vertices[4*vtxNdx + 1]; in iterate() 191 occluderVertices[4*i + 2] = vertices[4*vtxNdx + 2]; in iterate() 192 occluderVertices[4*i + 3] = vertices[4*vtxNdx + 3]; in iterate() 199 int vtxNdx = m_rnd.getInt(0, NUM_GENERATED_VERTICES-1); in iterate() local 200 targetVertices[4*i ] = vertices[4*vtxNdx]; in iterate() 201 targetVertices[4*i + 1] = vertices[4*vtxNdx + 1]; in iterate() 202 targetVertices[4*i + 2] = vertices[4*vtxNdx + 2]; in iterate() 203 targetVertices[4*i + 3] = vertices[4*vtxNdx + 3]; in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/rasterization/ |
D | vktRasterizationTests.cpp | 2188 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local 2192 << "\t" << outData[vtxNdx] in generateTriangles() 2254 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local 2258 << "\t" << outData[vtxNdx] in generateTriangles() 4649 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local 4653 << "\t" << outData[vtxNdx] in generateLines() 5076 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateVertices() local 5078 outData[vtxNdx].x() = rnd.getFloat(-0.9f, 0.9f); in generateVertices() 5079 outData[vtxNdx].y() = rnd.getFloat(-0.9f, 0.9f); in generateVertices() 5080 outData[vtxNdx].z() = 0.0f; in generateVertices() [all …]
|
/external/deqp/modules/glshared/ |
D | glsLongStressCase.cpp | 386 const int vtxNdx = (int)m_posBuf.size()/2; in addTextToBuffer() local 388 m_ndxBuf.push_back(deUint16(vtxNdx+0)); in addTextToBuffer() 389 m_ndxBuf.push_back(deUint16(vtxNdx+1)); in addTextToBuffer() 390 m_ndxBuf.push_back(deUint16(vtxNdx+2)); in addTextToBuffer() 392 m_ndxBuf.push_back(deUint16(vtxNdx+2)); in addTextToBuffer() 393 m_ndxBuf.push_back(deUint16(vtxNdx+1)); in addTextToBuffer() 394 m_ndxBuf.push_back(deUint16(vtxNdx+3)); in addTextToBuffer() 1009 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomAttribData() local 1011 …data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValu… in generateRandomAttribData() 1019 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomAttribData() local [all …]
|
D | glsFragOpInteractionCase.cpp | 547 for (int vtxNdx = 0; vtxNdx < 4; vtxNdx++) in iterate() local 549 const int fNdx = (attribNdx+vtxNdx+m_iterNdx)%DE_LENGTH_OF_ARRAY(vtxInterpFactors); in iterate() 554 …case 1: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<1>())); brea… in iterate() 555 …case 2: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<2>())); brea… in iterate() 556 …case 3: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<3>())); brea… in iterate() 557 …case 4: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<4>())); brea… in iterate()
|
D | glsShaderRenderCase.cpp | 205 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid() local 207 m_positions[vtxNdx] = Vec4(fx, fy, 0.0f, 1.0f); in QuadGrid() 208 m_attribOne[vtxNdx] = 1.0f; in QuadGrid() 209 m_screenPos[vtxNdx] = Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid() 210 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid() 211 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid() 214 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid() 652 int vtxNdx = ((y * (gridSize+1)) + x); in computeVertexReference() local 662 colors[vtxNdx] = color; in computeVertexReference()
|
D | glsRandomShaderCase.cpp | 167 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in init() local 169 int y = vtxNdx / (m_gridWidth+1); in init() 170 int x = vtxNdx - y*(m_gridWidth+1); in init() 173 float* dst = &vtxArray.getVertices()[vtxNdx*numComponents]; in init()
|
D | glsBufferTestUtil.cpp | 523 static inline tcu::Vec4 fetchVtxColor (const deUint8* ptr, int vtxNdx) in fetchVtxColor() argument 525 return tcu::RGBA(*(ptr + vtxNdx*3 + 0), in fetchVtxColor() 526 *(ptr + vtxNdx*3 + 1), in fetchVtxColor() 527 *(ptr + vtxNdx*3 + 2), in fetchVtxColor()
|
/external/deqp/external/openglcts/modules/common/ |
D | glcShaderRenderCase.cpp | 262 int vtxNdx = ((y * (gridSize + 1)) + x); in QuadGrid() local 264 m_positions[vtxNdx] = Vec4(fx, fy, 0.0f, 1.0f); in QuadGrid() 265 m_attribOne[vtxNdx] = 1.0f; in QuadGrid() 266 m_screenPos[vtxNdx] = Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid() 267 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid() 268 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid() 271 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid() 724 int vtxNdx = ((y * (gridSize + 1)) + x); in computeVertexReference() local 734 colors[vtxNdx] = color; in computeVertexReference()
|
/external/deqp/modules/internal/ |
D | ditFrameworkTests.cpp | 651 for (int vtxNdx = 0; vtxNdx < DE_LENGTH_OF_ARRAY(c.vtx); vtxNdx++) in ConstantInterpolationTest() local 653 c.vtx[vtxNdx].x() = rnd.getFloat()*2.0f - 1.0f; in ConstantInterpolationTest() 654 c.vtx[vtxNdx].y() = rnd.getFloat()*2.0f - 1.0f; in ConstantInterpolationTest() 655 c.vtx[vtxNdx].z() = depth; in ConstantInterpolationTest() 656 c.vtx[vtxNdx].w() = 1.0f; in ConstantInterpolationTest()
|
/external/deqp/modules/gles31/functional/ |
D | es31fTessellationTests.cpp | 3798 for (int vtxNdx = 0; vtxNdx < (int)prim0Vertices.size(); vtxNdx++) in iterate() local 3800 if (prim0Vertices[vtxNdx] != prim1Vertices[vtxNdx]) in iterate() 3802 …log << TestLog::Message << "Failure: tessellation coordinate at index " << vtxNdx << " differs bet… in iterate() 3803 …Note: the coordinate is " << prim0Vertices[vtxNdx] << " for the first primitive and " << prim1Vert… in iterate() 3853 for (int vtxNdx = 0; vtxNdx < (int)coordsA.size(); vtxNdx++) in compare() local 3855 if (coordsA[vtxNdx] != coordsB[vtxNdx]) in compare() 3857 …) << TestLog::Message << "Failure: tessellation coordinate at index " << vtxNdx << " differs betwe… in compare() 3858 …ssage << "Note: the coordinate is " << coordsA[vtxNdx] << " for the first program and " << coordsB… in compare() 4098 for(int vtxNdx = numVerticesRead; vtxNdx < numVerticesRead + patchNumVertices; vtxNdx++) in iterate() local 4100 const Vec3& vtx = tfResult.varying[vtxNdx]; in iterate() [all …]
|
D | es31fPrimitiveBoundingBoxTests.cpp | 4083 for (int vtxNdx = 0; vtxNdx < 6; ++vtxNdx) in generateAttributeData() local 4084 data[ndx * 6 * 2 + 2*vtxNdx].z() = rnd.getFloat(0.0f, 1.0); in generateAttributeData() 4087 for (int vtxNdx = 0; vtxNdx < 6; ++vtxNdx) in generateAttributeData() local 4088 data[ndx * 6 * 2 + 2*vtxNdx].w() = rnd.getFloat(0.0f, 1.0); in generateAttributeData()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRender.cpp | 239 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid() local 241 m_positions[vtxNdx] = tcu::Vec4(fx, fy, 0.0f, 1.0f); in QuadGrid() 242 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid() 243 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid() 244 m_attribOne[vtxNdx] = 1.0f; in QuadGrid() 246 m_screenPos[vtxNdx] = tcu::Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid() 249 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid() 2348 const int vtxNdx = ((y * (gridSize+1)) + x); in computeVertexReference() local 2358 colors[vtxNdx] = color; in computeVertexReference()
|
/external/deqp/framework/common/ |
D | tcuRasterizationVerifier.cpp | 2398 for (int vtxNdx = 0; vtxNdx < 3; ++vtxNdx) in calculateTriangleCoverage() local 2400 const int otherVtxNdx = (vtxNdx + 1) % 3; in calculateTriangleCoverage() 2402 const DVec2 edge = triangleSubPixelSpace[otherVtxNdx] - triangleSubPixelSpace[vtxNdx]; in calculateTriangleCoverage() 2403 const DVec2 v = pixelCenterPosition - triangleSubPixelSpace[vtxNdx]; in calculateTriangleCoverage()
|