/external/deqp/framework/referencerenderer/ |
D | rrShadingContext.hpp | 53 void writeFragmentOutput (const FragmentShadingContext& context, int packetNdx, int fragNdx, int ou… in writeFragmentOutput() argument 56 DE_ASSERT(fragNdx >= 0 && fragNdx < 4); in writeFragmentOutput() 59 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutput() 65 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readPointVarying() argument 67 DE_UNREF(fragNdx); in readPointVarying() 74 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readLineVarying() argument 76 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readLineVarying() 77 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>(); in readLineVarying() 81 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readTriangleVarying() argument 83 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readTriangleVarying() [all …]
|
D | rrRasterizer.cpp | 760 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in rasterizeMultiSample() local 762 e01[sampleNdx][fragNdx] = evaluateEdge(m_edge01, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 763 e12[sampleNdx][fragNdx] = evaluateEdge(m_edge12, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 764 e20[sampleNdx][fragNdx] = evaluateEdge(m_edge20, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 1057 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in rasterize() local 1059 float removedValue = fragmentPackets[packNdx].barycentric[2][fragNdx]; in rasterize() 1060 fragmentPackets[packNdx].barycentric[2][fragNdx] = 0.0f; in rasterize() 1061 fragmentPackets[packNdx].barycentric[1][fragNdx] += removedValue; in rasterize() 1079 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in rasterize() local 1081 float removedValue = nextFragmentPackets[packNdx].barycentric[2][fragNdx]; in rasterize() [all …]
|
D | rrRenderer.cpp | 1046 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in writeFragmentPackets() local 1049 const int xo = fragNdx%2; in writeFragmentPackets() 1050 const int yo = fragNdx/2; in writeFragmentPackets() 1078 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in writeFragmentPackets() local 1081 const int xo = fragNdx%2; in writeFragmentPackets() 1082 const int yo = fragNdx/2; in writeFragmentPackets() 1088 fragment.value = fragmentOutputArray[(packetNdx*4 + fragNdx) * numOutputs + outputNdx]; in writeFragmentPackets()
|
/external/deqp/modules/gles3/functional/ |
D | es3fFboTestUtil.cpp | 132 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 133 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments() 138 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 139 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, icolor); in shadeFragments() 144 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 145 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, uicolor); in shadeFragments() 213 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 215 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() 226 …if (m_outputType == glu::TYPE_FLOAT_VEC4) rr::writeFragmentOutput(context, packetNdx, fragNdx, 0… in shadeFragments() 227 …else if (m_outputType == glu::TYPE_INT_VEC4) rr::writeFragmentOutput(context, packetNdx, fragNdx,… in shadeFragments() [all …]
|
D | es3fDepthTests.cpp | 104 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 105 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
|
D | es3fTextureUnitTests.cpp | 674 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 675 …outColors[fragNdx] += colorMultiplier * (texSamples[fragNdx]*m_texScales[unitNdx] + m_texBiases[un… in shadeFragments() 679 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 680 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, outColors[fragNdx]); in shadeFragments()
|
D | es3fStencilTests.cpp | 108 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 109 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
|
D | es3fShaderBuiltinVarTests.cpp | 926 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 927 …iteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, VARYINGL… in shadeFragments()
|
D | es3fPolygonOffsetTests.cpp | 249 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 250 …ragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packet, context, VARY… in shadeFragments()
|
/external/deqp/modules/gles31/functional/ |
D | es31fFboTestUtil.cpp | 225 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 227 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() 228 texCoords[fragNdx] = tcu::Vec2(coord.x(), coord.y()); in shadeFragments() 232 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 233 colors[fragNdx] = tcu::Vec4(0.0f); in shadeFragments() 245 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 246 colors[fragNdx] += tmpColors[fragNdx] * scale + bias; in shadeFragments() 250 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 252 const tcu::Vec4 color = colors[fragNdx] * outScale + outBias; in shadeFragments() 256 …if (m_outputType == glu::TYPE_FLOAT_VEC4) rr::writeFragmentOutput(context, packetNdx, fragNdx, 0… in shadeFragments() [all …]
|
D | es31fGeometryShaderTests.cpp | 238 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 239 …riteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packets[packetNdx], cont… in shadeFragments() 345 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 346 …riteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packets[packetNdx], cont… in shadeFragments() 494 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 495 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f)); in shadeFragments() 499 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 500 …FragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packets[packetNdx], … in shadeFragments() 504 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 505 …ragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packets[packetNdx],… in shadeFragments() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineReferenceRenderer.hpp | 149 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local 151 const tcu::Vec4 vtxPosition = rr::readVarying<float>(packet, context, 0, fragNdx); in shadeFragments() 152 rr::writeFragmentDepth(context, packetNdx, fragNdx, 0, vtxPosition.z()); in shadeFragments() 156 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local 158 const tcu::Vec4 vtxColor = rr::readVarying<float>(packet, context, 1, fragNdx); in shadeFragments() 159 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, vtxColor); in shadeFragments() 245 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local 247 const tcu::Vec4 vtxTexCoord = rr::readVarying<float>(packet, context, 1, fragNdx); in shadeFragments() 252 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
|
/external/deqp/framework/randomshaders/ |
D | rsgProgramExecutor.cpp | 322 for (int fragNdx = packetStart; fragNdx < packetEnd; fragNdx++) in execute() local 324 int y = fragNdx/width; in execute() 325 int x = fragNdx - y*width; in execute() 329 interpolateFragmentInput(access, fragNdx-packetStart, in execute() 343 for (int fragNdx = packetStart; fragNdx < packetEnd; fragNdx++) in execute() local 345 int y = fragNdx/width; in execute() 346 int x = fragNdx - y*width; in execute() 347 int cNdx = fragNdx-packetStart; in execute()
|
/external/deqp/modules/glshared/ |
D | glsRandomShaderProgram.cpp | 273 for (int fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; fragNdx++) in shadeFragments() local 275 const tcu::Vec4 varValue = rr::readVarying<float>(packet, context, varNdx, fragNdx); in shadeFragments() 276 const int dstNdx = packetNdx*rr::NUM_FRAGMENTS_PER_PACKET + fragNdx; in shadeFragments() 291 for (int fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; fragNdx++) in shadeFragments() local 293 const int srcNdx = packetNdx*rr::NUM_FRAGMENTS_PER_PACKET + fragNdx; in shadeFragments() 299 rr::writeFragmentOutput(context, packetOffset+packetNdx, fragNdx, 0, color); in shadeFragments()
|
D | glsRasterizationTestUtil.cpp | 1093 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in verifySinglesampleLineGroupRasterization() local 1095 if ((deUint32)packets[packetNdx].coverage & (1 << fragNdx)) in verifySinglesampleLineGroupRasterization() 1097 const tcu::IVec2 fragPos = packets[packetNdx].position + tcu::IVec2(fragNdx%2, fragNdx/2); in verifySinglesampleLineGroupRasterization() 1452 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in setMaskMapCoverageBitForLine() local 1454 if ((deUint32)packets[packetNdx].coverage & (1 << fragNdx)) in setMaskMapCoverageBitForLine() 1456 const tcu::IVec2 fragPos = packets[packetNdx].position + tcu::IVec2(fragNdx%2, fragNdx/2); in setMaskMapCoverageBitForLine()
|
/external/deqp/modules/gles2/functional/ |
D | es2fTextureSpecificationTests.cpp | 151 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 153 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() 159 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(f0, f1, 1.0f-f0, 1.0f-f1)); in shadeFragments() 216 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 218 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() 219 texCoords[fragNdx] = tcu::Vec2(coord.x(), coord.y()); in shadeFragments() 226 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 227 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, colors[fragNdx]); in shadeFragments() 298 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 300 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() [all …]
|
D | es2fDepthTests.cpp | 101 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 102 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
|
D | es2fTextureUnitTests.cpp | 520 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 521 outColors[fragNdx] += colorMultiplier * texSamples[fragNdx]; in shadeFragments() 525 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 526 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, outColors[fragNdx]); in shadeFragments()
|
D | es2fFboRenderTest.cpp | 106 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 107 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments() 160 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 162 const tcu::Vec4 v_coord = rr::readVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() 165 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, this->m_uniforms[0].sampler.tex2D->sample(… in shadeFragments() 223 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 225 const tcu::Vec4 v_coord = rr::readVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments() 228 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, this->m_uniforms[0].sampler.tex2D->sampl… in shadeFragments()
|
D | es2fStencilTests.cpp | 105 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 106 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
|
D | es2fPolygonOffsetTests.cpp | 246 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 247 …ragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packet, context, VARY… in shadeFragments()
|
/external/deqp/framework/opengl/simplereference/ |
D | sglrReferenceContext.cpp | 4795 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in sample4() local 4797 const float& dFdx = (fragNdx > 2) ? dFdx1 : dFdx0; in sample4() 4798 const float& dFdy = (fragNdx % 2) ? dFdy1 : dFdy0; in sample4() 4805 output[fragNdx] = sample(packetTexcoords[fragNdx], lod); in sample4() 4915 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in sample4() local 4917 const tcu::Vec2& dFdx = (fragNdx & 2) ? dFdx1 : dFdx0; in sample4() 4918 const tcu::Vec2& dFdy = (fragNdx & 1) ? dFdy1 : dFdy0; in sample4() 4926 output[fragNdx] = sample(packetTexcoords[fragNdx].x(), packetTexcoords[fragNdx].y(), lod); in sample4() 5029 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in sample4() local 5031 const tcu::CubeFace face = tcu::selectCubeFace(packetTexcoords[fragNdx]); in sample4() [all …]
|
/external/deqp/modules/internal/ |
D | ditFrameworkTests.cpp | 746 for (int fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; fragNdx++) in runCase() local 748 … const tcu::Vec4 interp = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in runCase() 749 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, interp); in runCase()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiSmokeTests.cpp | 300 for (int fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; ++fragNdx) in shadeFragments() local 302 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f)); in shadeFragments()
|
/external/deqp/modules/egl/ |
D | teglRenderTests.cpp | 275 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local 276 …iteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, VaryingL… in shadeFragments()
|