/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineBlendTests.cpp | 445 int quadNdx = 0; in checkSupport() local 446 for (; quadNdx < BlendTest::QUAD_COUNT; quadNdx++) in checkSupport() 448 const VkPipelineColorBlendAttachmentState& blendState = m_blendStates[quadNdx]; in checkSupport() 457 if (quadNdx < BlendTest::QUAD_COUNT) in checkSupport() 536 for (int quadNdx = 0; quadNdx < BlendTest::QUAD_COUNT; quadNdx++) in checkSupport() local 539 isSrc1BlendFactor(this->m_blendStates[quadNdx].srcColorBlendFactor) || in checkSupport() 540 isSrc1BlendFactor(this->m_blendStates[quadNdx].dstColorBlendFactor) || in checkSupport() 541 isSrc1BlendFactor(this->m_blendStates[quadNdx].srcAlphaBlendFactor) || in checkSupport() 542 isSrc1BlendFactor(this->m_blendStates[quadNdx].dstAlphaBlendFactor); in checkSupport() 747 for (int quadNdx = 0; quadNdx < BlendTest::QUAD_COUNT; quadNdx++) in BlendTestInstance() local [all …]
|
D | vktPipelineStencilTests.cpp | 588 for (int quadNdx = 0; quadNdx < StencilTest::QUAD_COUNT; quadNdx++) in StencilTestInstance() local 590 const StencilTest::StencilStateConfig& config = StencilTest::s_stencilStateConfigs[quadNdx]; in StencilTestInstance() 602 …m_graphicsPipelines[quadNdx] = makeGraphicsPipeline(vk, // const DeviceInterface& … in StencilTestInstance() 645 for (int quadNdx = 0; quadNdx < 4; quadNdx++) in StencilTestInstance() local 647 m_vertices[quadNdx * 6 + vertexNdx].position.z() = StencilTest::s_quadDepths[quadNdx]; in StencilTestInstance() 718 for (int quadNdx = 0; quadNdx < StencilTest::QUAD_COUNT; quadNdx++) in StencilTestInstance() local 720 VkDeviceSize vertexBufferOffset = quadOffset * quadNdx; in StencilTestInstance() 722 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_graphicsPipelines[quadNdx]); in StencilTestInstance() 790 for (int quadNdx = 0; quadNdx < StencilTest::QUAD_COUNT; quadNdx++) in verifyImage() local 792 refStencilFront.ref = (int)StencilTest::s_stencilStateConfigs[quadNdx].frontRef; in verifyImage() [all …]
|
D | vktPipelineVertexUtil.cpp | 917 for (int quadNdx = 0; quadNdx < 4; quadNdx++) in createOverlappingQuads() local 919 const Vec2& translation = translations[quadNdx]; in createOverlappingQuads() 920 const Vec4& color = quadColors[quadNdx]; in createOverlappingQuads() 984 for (int quadNdx = 0; quadNdx < 4; quadNdx++) in createOverlappingQuadsDualSource() local 986 const Vec2& translation = translations[quadNdx]; in createOverlappingQuadsDualSource() 987 const Vec4& color0 = quadColors[quadNdx]; in createOverlappingQuadsDualSource() 1150 for (int quadNdx = 0; quadNdx < 6; quadNdx++) in createQuadMosaicCube() local 1154 vertexItr->texCoord.xyz() = texCoordsCube[texCoordCubeIndices[quadNdx][vertexNdx]]; in createQuadMosaicCube() 1167 for (int quadNdx = 0; quadNdx < 6; quadNdx++) in createQuadMosaicCubeArray() local 1171 vertexItr->texCoord.w() = (float)faceArrayIndices[quadNdx]; in createQuadMosaicCubeArray() [all …]
|
D | vktPipelineDepthTests.cpp | 562 for (int quadNdx = 0; quadNdx < DepthTest::QUAD_COUNT; quadNdx++) in DepthTestInstance() local 564 depthStencilStateParams.depthCompareOp = depthCompareOps[quadNdx]; in DepthTestInstance() 565 …m_graphicsPipelines[quadNdx] = makeGraphicsPipeline(vk, // const DeviceInterface& … in DepthTestInstance() 607 for (int quadNdx = 0; quadNdx < DepthTest::QUAD_COUNT; quadNdx++) in DepthTestInstance() local 609 m_vertices[quadNdx * 6 + vertexNdx].position.z() = DepthTest::quadDepths[quadNdx]; in DepthTestInstance() 683 for (int quadNdx = 0; quadNdx < DepthTest::QUAD_COUNT; quadNdx++) in DepthTestInstance() local 685 VkDeviceSize vertexBufferOffset = quadOffset * quadNdx; in DepthTestInstance() 687 vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_graphicsPipelines[quadNdx]); in DepthTestInstance() 725 for (int quadNdx = 0; quadNdx < DepthTest::QUAD_COUNT; quadNdx++) in verifyImage() local 730 renderState.fragOps.depthFunc = mapVkCompareOp(m_depthCompareOps[quadNdx]); in verifyImage() [all …]
|
D | vktPipelinePushDescriptorTests.cpp | 173 for (deUint32 quadNdx = 0; quadNdx < numQuads; quadNdx++) in createQuads() local 175 const float xOffset = -0.5f + (float)quadNdx; in createQuads() 197 for (deUint32 quadNdx = 0; quadNdx < numQuads; quadNdx++) in createTexQuads() local 199 const float xOffset = -0.5f + (float)quadNdx; in createTexQuads() 530 for (deUint32 quadNdx = 0; quadNdx < m_params.numCalls; quadNdx++) in init() local 534 **m_buffers[quadNdx], // VkBuffer buffer; in init() 554 m_vkd.cmdDraw(*m_cmdBuffer, 6, 1, 6 * quadNdx, 0); in init() 1625 for (deUint32 quadNdx = 0; quadNdx < m_params.numCalls; quadNdx++) in init() local 1629 samplers[quadNdx], // VkSampler sampler; in init() 1630 imageViews[quadNdx], // VkImageView imageView; in init() [all …]
|
D | vktPipelineDynamicOffsetTests.cpp | 89 for (deUint32 quadNdx = 0; quadNdx < numQuads; quadNdx++) in createQuads() local 91 const float xOffset = -0.5f + (float)quadNdx; in createQuads() 185 deUint32 quadNdx = 0; in init() local 636 vk.cmdDraw(**m_cmdBuffers[idx], 6, 1, 6 * quadNdx, 0); in init() 637 quadNdx++; in init()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fBufferTestUtil.cpp | 343 for (int quadNdx = 0; quadNdx < gridSizeX*gridSizeY; quadNdx++) in computeIndices() local 345 int v00 = quadNdx*4 + 0; in computeIndices() 346 int v01 = quadNdx*4 + 1; in computeIndices() 347 int v10 = quadNdx*4 + 2; in computeIndices() 348 int v11 = quadNdx*4 + 3; in computeIndices() 352 indices[quadNdx*6 + 0] = (deUint16)v10; in computeIndices() 353 indices[quadNdx*6 + 1] = (deUint16)v00; in computeIndices() 354 indices[quadNdx*6 + 2] = (deUint16)v01; in computeIndices() 356 indices[quadNdx*6 + 3] = (deUint16)v10; in computeIndices() 357 indices[quadNdx*6 + 4] = (deUint16)v01; in computeIndices() [all …]
|
D | es2fMultisampleTests.cpp | 692 for (int quadNdx = 0; quadNdx < 8; quadNdx++) in iterate() local 694 …Vec2 center = (2.0f-quadDiagLen) * Vec2((float)(quadNdx%3), (float)(quadNdx/3)) / 2.0f - 0.5f*(2.0… in iterate() 696 renderTriangle(corners[(0+quadNdx) % 4] + center, in iterate() 697 corners[(1+quadNdx) % 4] + center, in iterate() 698 corners[(2+quadNdx) % 4] + center, in iterate() 701 if (quadNdx >= 4) in iterate() 703 renderTriangle(corners[(3+quadNdx) % 4] + center, in iterate() 704 corners[(2+quadNdx) % 4] + center, in iterate() 705 corners[(0+quadNdx) % 4] + center, in iterate() 710 renderTriangle(corners[(0+quadNdx) % 4] + center, in iterate() [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsBufferTestUtil.cpp | 504 for (int quadNdx = 0; quadNdx < gridSizeX*gridSizeY; quadNdx++) in computeIndices() local 506 int v00 = quadNdx*4 + 0; in computeIndices() 507 int v01 = quadNdx*4 + 1; in computeIndices() 508 int v10 = quadNdx*4 + 2; in computeIndices() 509 int v11 = quadNdx*4 + 3; in computeIndices() 513 indices[quadNdx*6 + 0] = (deUint16)v10; in computeIndices() 514 indices[quadNdx*6 + 1] = (deUint16)v00; in computeIndices() 515 indices[quadNdx*6 + 2] = (deUint16)v01; in computeIndices() 517 indices[quadNdx*6 + 3] = (deUint16)v10; in computeIndices() 518 indices[quadNdx*6 + 4] = (deUint16)v01; in computeIndices() [all …]
|
D | glsRandomShaderCase.cpp | 208 for (int quadNdx = 0; quadNdx < numQuads; quadNdx++) in init() local 210 int quadY = quadNdx / (m_gridWidth); in init() 211 int quadX = quadNdx - quadY*m_gridWidth; in init() 213 m_indices[quadNdx*6+0] = (deUint16)(quadX + quadY*(m_gridWidth+1)); in init() 214 m_indices[quadNdx*6+1] = (deUint16)(quadX + (quadY+1)*(m_gridWidth+1)); in init() 215 m_indices[quadNdx*6+2] = (deUint16)(quadX + quadY*(m_gridWidth+1) + 1); in init() 216 m_indices[quadNdx*6+3] = (deUint16)(m_indices[quadNdx*6+2]); in init() 217 m_indices[quadNdx*6+4] = (deUint16)(m_indices[quadNdx*6+1]); in init() 218 m_indices[quadNdx*6+5] = (deUint16)(quadX + (quadY+1)*(m_gridWidth+1) + 1); in init()
|
D | glsVertexArrayTests.cpp | 1434 for (int quadNdx = 0; quadNdx < count; quadNdx++) in createQuadsPacked() local 1453 alignmentSafeAssignment<deUint32>(&(resultData[quadNdx * quadStride + stride * 0]), val1); in createQuadsPacked() 1454 alignmentSafeAssignment<deUint32>(&(resultData[quadNdx * quadStride + stride * 1]), val2); in createQuadsPacked() 1455 alignmentSafeAssignment<deUint32>(&(resultData[quadNdx * quadStride + stride * 2]), val3); in createQuadsPacked() 1456 alignmentSafeAssignment<deUint32>(&(resultData[quadNdx * quadStride + stride * 3]), val4); in createQuadsPacked() 1457 alignmentSafeAssignment<deUint32>(&(resultData[quadNdx * quadStride + stride * 4]), val5); in createQuadsPacked() 1458 alignmentSafeAssignment<deUint32>(&(resultData[quadNdx * quadStride + stride * 5]), val6); in createQuadsPacked() 1517 for (int quadNdx = 0; quadNdx < count; ++quadNdx) in createQuads() local 1540 alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride]), x1); in createQuads() 1541 alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + componentStride]), y1); in createQuads() [all …]
|
D | glsShaderPerformanceMeasurer.cpp | 108 int quadNdx = y*gridSizeX + x; in generateIndices() local 110 dst[quadNdx*numIndicesPerQuad + 0] = getVtxIndex(x+0, y+0, gridSizeX); in generateIndices() 111 dst[quadNdx*numIndicesPerQuad + 1] = getVtxIndex(x+1, y+0, gridSizeX); in generateIndices() 112 dst[quadNdx*numIndicesPerQuad + 2] = getVtxIndex(x+0, y+1, gridSizeX); in generateIndices() 114 dst[quadNdx*numIndicesPerQuad + 3] = getVtxIndex(x+0, y+1, gridSizeX); in generateIndices() 115 dst[quadNdx*numIndicesPerQuad + 4] = getVtxIndex(x+1, y+0, gridSizeX); in generateIndices() 116 dst[quadNdx*numIndicesPerQuad + 5] = getVtxIndex(x+1, y+1, gridSizeX); in generateIndices()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fAdvancedBlendTests.cpp | 438 for (int quadNdx = 0; quadNdx < numQuads; quadNdx++) in iterate() local 440 std::copy(DE_ARRAY_BEGIN(singleQuadPos), DE_ARRAY_END(singleQuadPos), &positions[quadNdx*4]); in iterate() 442 indices[quadNdx*6 + ndx] = (deUint16)(quadNdx*4 + singleQuadIndices[ndx]); in iterate() 492 for (int quadNdx = 1; quadNdx < numQuads; quadNdx++) in iterate() local 494 …gl.drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, (const void*)(deUintptr)(quadNdx*6*sizeof(deUi… in iterate() 525 for (int quadNdx = 0; quadNdx < numQuads; quadNdx++) in iterate() local 527 referenceState.blendMode = quadNdx == 0 ? rr::BLENDMODE_NONE : rr::BLENDMODE_ADVANCED; in iterate() 528 std::copy(&colors[4*quadNdx], &colors[4*quadNdx] + 4, &quad.color[0]); in iterate()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fMultisampleTests.cpp | 854 for (int quadNdx = 0; quadNdx < 8; quadNdx++) in iterate() local 856 …Vec2 center = (2.0f-quadDiagLen) * Vec2((float)(quadNdx%3), (float)(quadNdx/3)) / 2.0f - 0.5f*(2.0… in iterate() 858 renderTriangle(corners[(0+quadNdx) % 4] + center, in iterate() 859 corners[(1+quadNdx) % 4] + center, in iterate() 860 corners[(2+quadNdx) % 4] + center, in iterate() 863 if (quadNdx >= 4) in iterate() 865 renderTriangle(corners[(3+quadNdx) % 4] + center, in iterate() 866 corners[(2+quadNdx) % 4] + center, in iterate() 867 corners[(0+quadNdx) % 4] + center, in iterate() 872 renderTriangle(corners[(0+quadNdx) % 4] + center, in iterate() [all …]
|
D | es3fFragmentOutputTests.cpp | 595 for (int quadNdx = 0; quadNdx < numQuads; quadNdx++) in iterate() local 597 int quadY = quadNdx / (gridWidth-1); in iterate() 598 int quadX = quadNdx - quadY*(gridWidth-1); in iterate() 600 indices[quadNdx*6+0] = deUint16(quadX + quadY*gridWidth); in iterate() 601 indices[quadNdx*6+1] = deUint16(quadX + (quadY+1)*gridWidth); in iterate() 602 indices[quadNdx*6+2] = deUint16(quadX + quadY*gridWidth + 1); in iterate() 603 indices[quadNdx*6+3] = indices[quadNdx*6+1]; in iterate() 604 indices[quadNdx*6+4] = deUint16(quadX + (quadY+1)*gridWidth + 1); in iterate() 605 indices[quadNdx*6+5] = indices[quadNdx*6+2]; in iterate()
|
D | es3fShaderBuiltinVarTests.cpp | 851 const int quadNdx = triNdx/2; in init() local 852 const int quadY = quadNdx/maxQuadsX; in init() 853 const int quadX = quadNdx%maxQuadsX; in init()
|