Home
last modified time | relevance | path

Searched refs:fragNdx (Results 1 – 25 of 40) sorted by relevance

12

/third_party/vk-gl-cts/framework/referencerenderer/
DrrShadingContext.hpp55 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
[all …]
DrrRasterizer.cpp757 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in rasterizeMultiSample() local
759 e01[sampleNdx][fragNdx] = evaluateEdge(m_edge01, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample()
760 e12[sampleNdx][fragNdx] = evaluateEdge(m_edge12, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample()
761 e20[sampleNdx][fragNdx] = evaluateEdge(m_edge20, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample()
1075 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in rasterize() local
1077 float removedValue = fragmentPackets[packNdx].barycentric[2][fragNdx]; in rasterize()
1078 fragmentPackets[packNdx].barycentric[2][fragNdx] = 0.0f; in rasterize()
1079 fragmentPackets[packNdx].barycentric[1][fragNdx] += removedValue; in rasterize()
1097 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in rasterize() local
1099 float removedValue = nextFragmentPackets[packNdx].barycentric[2][fragNdx]; in rasterize()
[all …]
DrrRenderer.cpp1051 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in writeFragmentPackets() local
1054 const int xo = fragNdx%2; in writeFragmentPackets()
1055 const int yo = fragNdx/2; in writeFragmentPackets()
1083 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in writeFragmentPackets() local
1086 const int xo = fragNdx%2; in writeFragmentPackets()
1087 const int yo = fragNdx/2; in writeFragmentPackets()
1093 fragment.value = fragmentOutputArray[(packetNdx*4 + fragNdx) * numOutputs + outputNdx]; in writeFragmentPackets()
1094 fragment.value1 = fragmentOutputArraySrc1[(packetNdx*4 + fragNdx) * numOutputs + outputNdx]; in writeFragmentPackets()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFboTestUtil.cpp132 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 …]
Des3fDepthTests.cpp104 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
105 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des3fTextureUnitTests.cpp675 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
676 …outColors[fragNdx] += colorMultiplier * (texSamples[fragNdx]*m_texScales[unitNdx] + m_texBiases[un… in shadeFragments()
680 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
681 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, outColors[fragNdx]); in shadeFragments()
Des3fStencilTests.cpp108 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
109 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des3fShaderBuiltinVarTests.cpp947 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
948 …iteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, VARYINGL… in shadeFragments()
Des3fPolygonOffsetTests.cpp249 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
250 …ragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packet, context, VARY… in shadeFragments()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineReferenceRenderer.hpp189 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local
191 const tcu::Vec4 vtxPosition = rr::readVarying<float>(packet, context, 0, fragNdx); in shadeFragments()
192 rr::writeFragmentDepth(context, packetNdx, fragNdx, 0, vtxPosition.z()); in shadeFragments()
196 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local
198 const tcu::Vec4 vtxColor = rr::readVarying<float>(packet, context, 1, fragNdx); in shadeFragments()
199 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, vtxColor); in shadeFragments()
241 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local
243 const tcu::Vec4 vtxPosition = rr::readVarying<float>(packet, context, 0, fragNdx); in shadeFragments()
244 rr::writeFragmentDepth(context, packetNdx, fragNdx, 0, vtxPosition.z()); in shadeFragments()
248 for (int fragNdx = 0; fragNdx < 4; fragNdx++) in shadeFragments() local
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fFboTestUtil.cpp225 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 …]
Des31fGeometryShaderTests.cpp247 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
248 …riteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packets[packetNdx], cont… in shadeFragments()
354 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
355 …riteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packets[packetNdx], cont… in shadeFragments()
503 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
504 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f)); in shadeFragments()
508 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
509 …FragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packets[packetNdx], … in shadeFragments()
513 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
514 …ragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packets[packetNdx],… in shadeFragments()
[all …]
/third_party/vk-gl-cts/framework/randomshaders/
DrsgProgramExecutor.cpp322 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()
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderProgram.cpp273 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()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fTextureSpecificationTests.cpp151 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 …]
Des2fDepthTests.cpp101 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
102 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des2fTextureUnitTests.cpp521 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
522 outColors[fragNdx] += colorMultiplier * texSamples[fragNdx]; in shadeFragments()
526 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
527 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, outColors[fragNdx]); in shadeFragments()
Des2fFboRenderTest.cpp106 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()
Des2fStencilTests.cpp105 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
106 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des2fPolygonOffsetTests.cpp246 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
247 …ragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packet, context, VARY… in shadeFragments()
/third_party/vk-gl-cts/framework/opengl/simplereference/
DsglrReferenceContext.cpp4832 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in sample4() local
4834 const float& dFdx = (fragNdx > 2) ? dFdx1 : dFdx0; in sample4()
4835 const float& dFdy = (fragNdx % 2) ? dFdy1 : dFdy0; in sample4()
4842 output[fragNdx] = sample(packetTexcoords[fragNdx], lod); in sample4()
4952 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in sample4() local
4954 const tcu::Vec2& dFdx = (fragNdx & 2) ? dFdx1 : dFdx0; in sample4()
4955 const tcu::Vec2& dFdy = (fragNdx & 1) ? dFdy1 : dFdy0; in sample4()
4963 output[fragNdx] = sample(packetTexcoords[fragNdx].x(), packetTexcoords[fragNdx].y(), lod); in sample4()
5066 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in sample4() local
5068 const tcu::CubeFace face = tcu::selectCubeFace(packetTexcoords[fragNdx]); in sample4()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawAhbTests.cpp116 for (deUint32 fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; ++fragNdx) in shadeFragments() local
118 tcu::Vec4 color = rr::readVarying<float>(packet, context, 0, fragNdx); in shadeFragments()
119 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
DvktDrawInstancedTests.cpp209 for (int fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; ++fragNdx) in shadeFragments() local
211 const tcu::Vec4 color = rr::readVarying<float>(packet, context, 0, fragNdx); in shadeFragments()
212 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
/third_party/vk-gl-cts/modules/internal/
DditFrameworkTests.cpp760 for (int fragNdx = 0; fragNdx < rr::NUM_FRAGMENTS_PER_PACKET; fragNdx++) in runCase() local
762 … const tcu::Vec4 interp = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in runCase()
763 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, interp); in runCase()
/third_party/vk-gl-cts/modules/egl/
DteglRenderTests.cpp281 for (int fragNdx = 0; fragNdx < 4; ++fragNdx) in shadeFragments() local
282 …iteFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, VaryingL… in shadeFragments()

12