Home
last modified time | relevance | path

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

12

/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFboTestUtil.cpp113 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
115 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
131 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
133 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
137 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
139 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, icolor); in shadeFragments()
143 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
145 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, uicolor); in shadeFragments()
198 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
200 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
[all …]
Des3fDepthTests.cpp93 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
94 …packets[packetNdx]->position = rr::readVertexAttribFloat(inputs[0], packets[packetNdx]->instanceNd… in shadeVertices()
103 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
105 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des3fStencilTests.cpp93 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
95 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
107 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
109 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des3fShaderBuiltinVarTests.cpp926 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
931 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
943 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
945 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
948 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, VA… in shadeFragments()
Des3fPolygonOffsetTests.cpp228 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
233 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
245 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
247 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
250 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packet, con… in shadeFragments()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineReferenceRenderer.hpp66 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeVertices() local
68 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
104 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeVertices() local
106 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
141 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeVertices() local
143 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
183 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeFragments() local
185 const rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
192 rr::writeFragmentDepth(context, packetNdx, fragNdx, 0, vtxPosition.z()); in shadeFragments()
199 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, vtxColor); in shadeFragments()
[all …]
/third_party/vk-gl-cts/framework/referencerenderer/
DrrShadingContext.hpp55 void writeFragmentOutput (const FragmentShadingContext& context, int packetNdx, int fragNdx, int ou… in writeFragmentOutput() argument
57 DE_ASSERT(packetNdx >= 0); in writeFragmentOutput()
61 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutput()
65 void writeFragmentOutputDualSource (const FragmentShadingContext& context, int packetNdx, int fragN… in writeFragmentOutputDualSource() argument
67 DE_ASSERT(packetNdx >= 0); 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()
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
[all …]
DrrRasterizer.cpp542 int packetNdx = 0; in rasterizeSingleSample() local
551 while (m_curPos.y() <= m_bboxMax.y() && packetNdx < maxFragmentPackets) in rasterizeSingleSample()
617 depthValues[packetNdx*4+0] = z0[0]*za + z1[0]*zb + zc; in rasterizeSingleSample()
618 depthValues[packetNdx*4+1] = z0[1]*za + z1[1]*zb + zc; in rasterizeSingleSample()
619 depthValues[packetNdx*4+2] = z0[2]*za + z1[2]*zb + zc; in rasterizeSingleSample()
620 depthValues[packetNdx*4+3] = z0[3]*za + z1[3]*zb + zc; in rasterizeSingleSample()
625 FragmentPacket& packet = fragmentPackets[packetNdx]; in rasterizeSingleSample()
638 packetNdx += 1; in rasterizeSingleSample()
642 DE_ASSERT(packetNdx <= maxFragmentPackets); in rasterizeSingleSample()
643 numPacketsRasterized = packetNdx; in rasterizeSingleSample()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderProgram.cpp192 const int packetNdx = ndx+packetOffset; in shadeVertices() local
193 const rr::VertexPacket* packet = packets[packetNdx]; in shadeVertices()
211 const int packetNdx = ndx+packetOffset; in shadeVertices() local
212 rr::VertexPacket* packet = packets[packetNdx]; in shadeVertices()
233 const int packetNdx = ndx+packetOffset; in shadeVertices() local
234 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
269 for (int packetNdx = 0; packetNdx < numPacketsToExecute; packetNdx++) in shadeFragments() local
271 const rr::FragmentPacket& packet = packets[packetOffset+packetNdx]; in shadeFragments()
276 const int dstNdx = packetNdx*rr::NUM_FRAGMENTS_PER_PACKET + fragNdx; in shadeFragments()
289 for (int packetNdx = 0; packetNdx < numPacketsToExecute; packetNdx++) in shadeFragments() local
[all …]
DglsTextureBufferCase.cpp166 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeVertices() local
168 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
192 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeVertices() local
194 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
224 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in shadeFragments() local
226 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
238 …rr::writeFragmentOutput(context, packetNdx, 0, 0, tcu::Vec4(color0.x() * color0.w(), color0.y() * … in shadeFragments()
239 …rr::writeFragmentOutput(context, packetNdx, 1, 0, tcu::Vec4(color1.x() * color1.w(), color1.y() * … in shadeFragments()
240 …rr::writeFragmentOutput(context, packetNdx, 2, 0, tcu::Vec4(color2.x() * color2.w(), color2.y() * … in shadeFragments()
241 …rr::writeFragmentOutput(context, packetNdx, 3, 0, tcu::Vec4(color3.x() * color3.w(), color3.y() * … in shadeFragments()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fFboTestUtil.cpp205 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
207 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
222 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
227 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments()
256 …if (m_outputType == glu::TYPE_FLOAT_VEC4) rr::writeFragmentOutput(context, packetNdx, fragNdx, 0… in shadeFragments()
257 …else if (m_outputType == glu::TYPE_INT_VEC4) rr::writeFragmentOutput(context, packetNdx, fragNdx,… in shadeFragments()
258 …else if (m_outputType == glu::TYPE_UINT_VEC4) rr::writeFragmentOutput(context, packetNdx, fragNdx… in shadeFragments()
374 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
376 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
393 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
[all …]
Des31fGeometryShaderTests.cpp246 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
248 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packets[packetNdx],… in shadeFragments()
353 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
355 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packets[packetNdx],… in shadeFragments()
498 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
504 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f)); in shadeFragments()
509 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packets[pac… in shadeFragments()
514 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readTriangleVarying<float>(packets[p… in shadeFragments()
515 … + rr::readTriangleVarying<float>(packets[packetNdx], context, 1, fragNdx).swizzle(1, 0, 2, 3)); in shadeFragments()
837 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
[all …]
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fDepthTests.cpp90 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
91 …packets[packetNdx]->position = rr::readVertexAttribFloat(inputs[0], packets[packetNdx]->instanceNd… in shadeVertices()
100 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
102 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des2fFboRenderTest.cpp95 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
96 …packets[packetNdx]->position = rr::readVertexAttribFloat(inputs[0], packets[packetNdx]->instanceNd… in shadeVertices()
105 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
107 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
148 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
150 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
159 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) 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()
211 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
[all …]
Des2fStencilTests.cpp90 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
92 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
104 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
106 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
Des2fTextureSpecificationTests.cpp139 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
141 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
150 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) 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()
199 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
201 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
213 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
218 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments()
227 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, colors[fragNdx]); in shadeFragments()
[all …]
Des2fTextureUnitTests.cpp455 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
457 rr::VertexPacket& packet = *(packets[packetNdx]); in shadeVertices()
470 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
472 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
527 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, outColors[fragNdx]); in shadeFragments()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawAhbTests.cpp86 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
88 packets[packetNdx]->position = rr::readVertexAttribFloat(inputs[0], in shadeVertices()
89 packets[packetNdx]->instanceNdx, in shadeVertices()
90 packets[packetNdx]->vertexNdx); in shadeVertices()
93 packets[packetNdx]->instanceNdx, in shadeVertices()
94 packets[packetNdx]->vertexNdx); in shadeVertices()
96 packets[packetNdx]->outputs[0] = color; in shadeVertices()
113 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
115 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
119 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
DvktDrawInstancedTests.cpp176 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
178 const int instanceNdx = packets[packetNdx]->instanceNdx + m_firstInstance; in shadeVertices()
179 …sition = rr::readVertexAttribFloat(inputs[0], packets[packetNdx]->instanceNdx, packets[packetNdx]… in shadeVertices()
180 …color = rr::readVertexAttribFloat(inputs[1], packets[packetNdx]->instanceNdx, packets[packetNdx]… in shadeVertices()
181 …olor2 = rr::readVertexAttribFloat(inputs[2], packets[packetNdx]->instanceNdx, packets[packetNdx]… in shadeVertices()
182 …packets[packetNdx]->position = position + tcu::Vec4((float)(packets[packetNdx]->instanceNdx * 2.0 … in shadeVertices()
183 …packets[packetNdx]->outputs[0] = color + tcu::Vec4((float)instanceNdx / (float)m_numInstances, 0.0… in shadeVertices()
206 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
208 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
212 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
DvktBasicDrawTests.cpp218 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
220 packets[packetNdx]->position = rr::readVertexAttribFloat(inputs[0], in shadeVertices()
221 packets[packetNdx]->instanceNdx, in shadeVertices()
222 packets[packetNdx]->vertexNdx); in shadeVertices()
225 packets[packetNdx]->instanceNdx, in shadeVertices()
226 packets[packetNdx]->vertexNdx); in shadeVertices()
228 packets[packetNdx]->outputs[0] = color; in shadeVertices()
245 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
247 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
251 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
/third_party/vk-gl-cts/framework/randomshaders/
DrsgProgramExecutor.cpp232 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in execute() local
234 int packetStart = packetNdx*EXEC_VEC_WIDTH; in execute()
235 int packetEnd = deMin32((packetNdx+1)*EXEC_VEC_WIDTH, numVertices); in execute()
308 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in execute() local
310 int packetStart = packetNdx*EXEC_VEC_WIDTH; in execute()
311 int packetEnd = deMin32((packetNdx+1)*EXEC_VEC_WIDTH, width*height); in execute()
/third_party/vk-gl-cts/modules/egl/
DteglColorClearCase.cpp369 for (int packetNdx = 0; packetNdx < numPacketsPerThread; packetNdx++) in executeForContexts() local
371 ClearPacket& packet = packets[threadNdx][packetNdx]; in executeForContexts()
374 packet.wait = semaphores[packetNdx*numThreads + threadNdx]; in executeForContexts()
375 packet.signal = semaphores[packetNdx*numThreads + threadNdx + 1]; in executeForContexts()
380 if (threadNdx == 0 && packetNdx == 0 && clearNdx == 0) in executeForContexts()
418 for (int packetNdx = 0; packetNdx < numPacketsPerThread; packetNdx++) in executeForContexts() local
422 const ClearPacket& packet = packets[threadNdx][packetNdx]; in executeForContexts()
DteglRenderTests.cpp260 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
265 rr::VertexPacket& packet = *packets[packetNdx]; in shadeVertices()
277 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
279 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
282 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, Va… in shadeFragments()
989 for (int packetNdx = 0; packetNdx < packetsPerThread; packetNdx++) in executeForContexts() local
991 DrawOpPacket& packet = packets[threadNdx][packetNdx]; in executeForContexts()
994 packet.wait = semaphores[packetNdx*numThreads + threadNdx]; in executeForContexts()
995 packet.signal = semaphores[packetNdx*numThreads + threadNdx + 1]; in executeForContexts()
997 packet.drawOps = &drawOps[(packetNdx*numThreads + threadNdx)*opsPerPacket]; in executeForContexts()
/third_party/vk-gl-cts/modules/internal/
DditFrameworkTests.cpp738 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) in runCase() local
740 …rr::readVertexAttrib(packets[packetNdx]->position, inputs[0], packets[packetNdx]->instanceNdx, pac… in runCase()
741 …packets[packetNdx]->outputs[0] = rr::readVertexAttribFloat(inputs[1], packets[packetNdx]->instance… in runCase()
758 for (int packetNdx = 0; packetNdx < numPackets; packetNdx++) 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/external/vulkancts/modules/vulkan/api/
DvktApiSmokeTests.cpp280 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeVertices() local
282 packets[packetNdx]->position = rr::readVertexAttribFloat(inputs[0], in shadeVertices()
283 packets[packetNdx]->instanceNdx, in shadeVertices()
284 packets[packetNdx]->vertexNdx); in shadeVertices()
300 for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) in shadeFragments() local
304 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f)); in shadeFragments()

12