Lines Matching refs:fragNdx
55 void writeFragmentOutput (const FragmentShadingContext& context, int packetNdx, int fragNdx, int ou… in writeFragmentOutput() argument
58 DE_ASSERT(fragNdx >= 0 && fragNdx < 4); in writeFragmentOutput()
61 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutput()
65 …putDualSource (const FragmentShadingContext& context, int packetNdx, int fragNdx, int outputNdx, c… in writeFragmentOutputDualSource() argument
68 DE_ASSERT(fragNdx >= 0 && fragNdx < 4); in writeFragmentOutputDualSource()
71 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutputDualSource()
72 context.outputArraySrc1[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value1; in writeFragmentOutputDualSource()
78 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readPointVarying() argument
80 DE_UNREF(fragNdx); in readPointVarying()
87 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readLineVarying() argument
89 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readLineVarying()
90 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>(); in readLineVarying()
94 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readTriangleVarying() argument
96 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readTriangleVarying()
97 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>() in readTriangleVarying()
98 + packet.barycentric[2][fragNdx] * context.varyings[2][varyingLoc].get<T>(); in readTriangleVarying()
102 … (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readVarying() argument
104 …context.varyings[1] == DE_NULL) return readPointVarying<T> (packet, context, varyingLoc, fragNdx); in readVarying()
105 …(context.varyings[2] == DE_NULL) return readLineVarying<T> (packet, context, varyingLoc, fragNdx); in readVarying()
106 return readTriangleVarying<T> (packet, context, varyingLoc, fragNdx); in readVarying()
171 inline float readFragmentDepth (const FragmentShadingContext& context, int packetNdx, int fragNdx, … in readFragmentDepth() argument
175 return context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx]; in readFragmentDepth()
178 inline void writeFragmentDepth (const FragmentShadingContext& context, int packetNdx, int fragNdx, … in writeFragmentDepth() argument
182 context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx] = depthValue; in writeFragmentDepth()