/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFboTestUtil.cpp | 113 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 …]
|
D | es3fDepthTests.cpp | 93 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()
|
D | es3fStencilTests.cpp | 93 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()
|
D | es3fShaderBuiltinVarTests.cpp | 926 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()
|
D | es3fPolygonOffsetTests.cpp | 228 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/ |
D | vktPipelineReferenceRenderer.hpp | 66 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/ |
D | rrShadingContext.hpp | 55 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 …]
|
D | rrRasterizer.cpp | 542 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/ |
D | glsRandomShaderProgram.cpp | 192 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 …]
|
D | glsTextureBufferCase.cpp | 166 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/ |
D | es31fFboTestUtil.cpp | 205 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 …]
|
D | es31fGeometryShaderTests.cpp | 246 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/ |
D | es2fDepthTests.cpp | 90 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()
|
D | es2fFboRenderTest.cpp | 95 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 …]
|
D | es2fStencilTests.cpp | 90 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()
|
D | es2fTextureSpecificationTests.cpp | 139 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 …]
|
D | es2fTextureUnitTests.cpp | 455 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/ |
D | vktDrawAhbTests.cpp | 86 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()
|
D | vktDrawInstancedTests.cpp | 176 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()
|
D | vktBasicDrawTests.cpp | 218 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/ |
D | rsgProgramExecutor.cpp | 232 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/ |
D | teglColorClearCase.cpp | 369 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()
|
D | teglRenderTests.cpp | 260 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/ |
D | ditFrameworkTests.cpp | 738 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/ |
D | vktApiSmokeTests.cpp | 280 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()
|