/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fNegativeShaderFunctionTests.cpp | 370 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(s_shaders); ++shaderNdx) in bitfield_extract_invalid_value_type() local 372 if (ctx.isShaderSupported(s_shaders[shaderNdx])) in bitfield_extract_invalid_value_type() 374 ctx.beginSection("Verify shader: " + std::string(getShaderTypeName(s_shaders[shaderNdx]))); in bitfield_extract_invalid_value_type() 377 …const std::string shaderSource(genShaderSourceBitfieldExtract(ctx, s_shaders[shaderNdx], s_floatTy… in bitfield_extract_invalid_value_type() 378 verifyShader(ctx, s_shaders[shaderNdx], shaderSource); in bitfield_extract_invalid_value_type() 391 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(s_shaders); ++shaderNdx) in bitfield_extract_invalid_offset_type() local 393 if (ctx.isShaderSupported(s_shaders[shaderNdx])) in bitfield_extract_invalid_offset_type() 395 ctx.beginSection("Verify shader: " + std::string(getShaderTypeName(s_shaders[shaderNdx]))); in bitfield_extract_invalid_offset_type() 401 …const std::string shaderSource(genShaderSourceBitfieldExtract(ctx, s_shaders[shaderNdx], s_intType… in bitfield_extract_invalid_offset_type() 402 verifyShader(ctx, s_shaders[shaderNdx], shaderSource); in bitfield_extract_invalid_offset_type() [all …]
|
D | es31fProgramInterfaceDefinition.cpp | 446 for (int shaderNdx = 0; shaderNdx < (int)m_shaders.size(); ++shaderNdx) in ~Program() local 448 …for (int varNdx = 0; varNdx < (int)m_shaders[shaderNdx]->m_defaultBlock.variables.size(); ++varNdx) in ~Program() 449 collectStructPtrs(structTypes, m_shaders[shaderNdx]->m_defaultBlock.variables[varNdx].varType); in ~Program() 451 …for (int interfaceNdx = 0; interfaceNdx < (int)m_shaders[shaderNdx]->m_defaultBlock.interfaceBlock… in ~Program() 452 …for (int varNdx = 0; varNdx < (int)m_shaders[shaderNdx]->m_defaultBlock.interfaceBlocks[interfaceN… in ~Program() 453 …collectStructPtrs(structTypes, m_shaders[shaderNdx]->m_defaultBlock.interfaceBlocks[interfaceNdx].… in ~Program() 460 for (int shaderNdx = 0; shaderNdx < (int)m_shaders.size(); ++shaderNdx) in ~Program() local 461 delete m_shaders[shaderNdx]; in ~Program() 500 for (int shaderNdx = 0; shaderNdx < (int)m_shaders.size(); ++shaderNdx) in getFirstStage() local 502 const int index = getShaderStageIndex(m_shaders[shaderNdx]->getType()); in getFirstStage() [all …]
|
D | es31fProgramInterfaceDefinitionUtil.cpp | 130 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in programContainsIOBlocks() local 132 if (shaderContainsIOBlocks(program->getShaders()[shaderNdx])) in programContainsIOBlocks() 829 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in traverseProgramVariablePath() local 831 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in traverseProgramVariablePath() 1317 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in getProgramInterfaceResourceList() local 1319 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in getProgramInterfaceResourceList() 1346 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in getProgramInterfaceResourceList() local 1348 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in getProgramInterfaceResourceList() 1386 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in getProgramInterfaceResourceList() local 1388 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in getProgramInterfaceResourceList() [all …]
|
D | es31fProgramInterfaceQueryTestCase.cpp | 329 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in validate() local 331 const ProgramInterfaceDefinition::Shader* const shader = program->getShaders()[shaderNdx]; in validate() 1291 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in validate() local 1293 const ProgramInterfaceDefinition::Shader* const shader = program->getShaders()[shaderNdx]; in validate() 1808 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in isInterfaceBlockInterfaceName() local 1810 const ProgramInterfaceDefinition::Shader* const shader = program->getShaders()[shaderNdx]; in isInterfaceBlockInterfaceName() 1873 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in getInterfaceBlockInteraceNameByMember() local 1875 const ProgramInterfaceDefinition::Shader* const shader = program->getShaders()[shaderNdx]; in getInterfaceBlockInteraceNameByMember() 2743 for (int shaderNdx = 0; shaderNdx < (int)program->getShaders().size(); ++shaderNdx) in checkProgramResourceUsage() local 2744 limitExceeded |= !checkShaderResourceUsage(program, program->getShaders()[shaderNdx], gl, log); in checkProgramResourceUsage()
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluShaderProgram.cpp | 400 for (int shaderNdx = 0; shaderNdx < (int)sources.sources[shaderType].size(); ++shaderNdx) in init() local 402 const char* source = sources.sources[shaderType][shaderNdx].c_str(); in init() 403 const int length = (int)sources.sources[shaderType][shaderNdx].size(); in init() 418 for (int shaderNdx = 0; shaderNdx < (int)m_shaders[shaderType].size(); ++shaderNdx) in init() local 419 m_program.attachShader(m_shaders[shaderType][shaderNdx]->getShader()); in init() 443 for (int shaderNdx = 0; shaderNdx < (int)m_shaders[shaderType].size(); ++shaderNdx) in init() local 444 delete m_shaders[shaderType][shaderNdx]; in init() 479 for (deUint32 shaderNdx = 0; shaderNdx < shaders.size(); ++shaderNdx) in init() local 481 shaders[shaderNdx]->specialize(shaderBinary.shaderEntryPoints[shaderNdx].c_str(), in init() 486 shadersOk = shadersOk && shaders[shaderNdx]->getCompileStatus(); in init() [all …]
|
D | gluShaderProgram.hpp | 202 …etShader (glu::ShaderType shaderType, int shaderNdx = 0) const { return m_shaders[shaderType][… in getShader() argument 204 …haderInfo (glu::ShaderType shaderType, int shaderNdx = 0) const { return m_shaders[shaderType][… in getShaderInfo() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationInternallySynchronizedObjectsTests.cpp | 661 const int shaderNdx = executionNdx % (int)m_pipelineInfo.size(); in runThread() local 664 …Pipeline> pipeline = createComputePipeline(vk,device,m_pipelineCache, &m_pipelineInfo[shaderNdx]); in runThread() 666 …ext, *pipeline, m_pipelineLayout, m_descriptorSetLayout, m_queues, m_shadersExecutions[shaderNdx]); in runThread() 700 const int shaderNdx = executionNdx % (int)m_pipelineInfo.size(); in runThread() local 703 …peline> pipeline = createGraphicsPipeline(vk,device, m_pipelineCache, &m_pipelineInfo[shaderNdx]); in runThread() 705 …, m_pipelineLayout, m_descriptorSetLayout, m_queues, m_renderPass, m_shadersExecutions[shaderNdx]); in runThread() 801 for (int shaderNdx = 0; shaderNdx < static_cast<int>(m_shadersExecutions.size()); ++shaderNdx) in addShaderModules() local 804 shaderName<<"compute_"<<shaderNdx; in addShaderModules() 805 …shaderCompModules[shaderNdx] = SharedPtr<Unique<VkShaderModule> > (new Unique<VkShaderModule>(crea… in addShaderModules() 821 for (int shaderNdx = 0; shaderNdx < static_cast<int>(m_shadersExecutions.size()); ++shaderNdx) in addShaderStageInfo() local [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/synchronization/ |
D | vktSynchronizationInternallySynchronizedObjectsTests.cpp | 661 const int shaderNdx = executionNdx % (int)m_pipelineInfo.size(); in runThread() local 664 …Pipeline> pipeline = createComputePipeline(vk,device,m_pipelineCache, &m_pipelineInfo[shaderNdx]); in runThread() 666 …ext, *pipeline, m_pipelineLayout, m_descriptorSetLayout, m_queues, m_shadersExecutions[shaderNdx]); in runThread() 700 const int shaderNdx = executionNdx % (int)m_pipelineInfo.size(); in runThread() local 703 …peline> pipeline = createGraphicsPipeline(vk,device, m_pipelineCache, &m_pipelineInfo[shaderNdx]); in runThread() 705 …, m_pipelineLayout, m_descriptorSetLayout, m_queues, m_renderPass, m_shadersExecutions[shaderNdx]); in runThread() 801 for (int shaderNdx = 0; shaderNdx < static_cast<int>(m_shadersExecutions.size()); ++shaderNdx) in addShaderModules() local 804 shaderName<<"compute_"<<shaderNdx; in addShaderModules() 805 …shaderCompModules[shaderNdx] = SharedPtr<Unique<VkShaderModule> > (new Unique<VkShaderModule>(crea… in addShaderModules() 821 for (int shaderNdx = 0; shaderNdx < static_cast<int>(m_shadersExecutions.size()); ++shaderNdx) in addShaderStageInfo() local [all …]
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkShaderProgram.cpp | 63 for (size_t shaderNdx = 0; shaderNdx < sources[shaderType].size(); shaderNdx++) in logShader() local 66 sources[shaderType][shaderNdx], in logShader()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/util/ |
D | vktDrawUtil.cpp | 518 for (deUint32 shaderNdx = 0; shaderNdx < vulkanProgram.shaders.size(); ++shaderNdx) in registerDrawObject() local 520 …object->shaderModules[shaderNdx] = createShaderModule(vk, device, *vulkanProgram.shaders[shaderNdx… in registerDrawObject() 522 stageFlags |= vulkanProgram.shaders[shaderNdx].stage; in registerDrawObject() 524 switch (vulkanProgram.shaders[shaderNdx].stage) in registerDrawObject() 527 vertShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 530 tessControlShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 533 tessEvalShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 536 geomShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 539 DE_ASSERT(vulkanProgram.shaders[shaderNdx].stage == VK_SHADER_STAGE_FRAGMENT_BIT); in registerDrawObject() 540 fragShader = *object->shaderModules[shaderNdx]; in registerDrawObject()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/util/ |
D | vktDrawUtil.cpp | 518 for (deUint32 shaderNdx = 0; shaderNdx < vulkanProgram.shaders.size(); ++shaderNdx) in registerDrawObject() local 520 …object->shaderModules[shaderNdx] = createShaderModule(vk, device, *vulkanProgram.shaders[shaderNdx… in registerDrawObject() 522 stageFlags |= vulkanProgram.shaders[shaderNdx].stage; in registerDrawObject() 524 switch (vulkanProgram.shaders[shaderNdx].stage) in registerDrawObject() 527 vertShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 530 tessControlShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 533 tessEvalShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 536 geomShader = *object->shaderModules[shaderNdx]; in registerDrawObject() 539 DE_ASSERT(vulkanProgram.shaders[shaderNdx].stage == VK_SHADER_STAGE_FRAGMENT_BIT); in registerDrawObject() 540 fragShader = *object->shaderModules[shaderNdx]; in registerDrawObject()
|
/third_party/vk-gl-cts/executor/tools/ |
D | xeExtractShaderPrograms.cpp | 81 for (int shaderNdx = 0; shaderNdx < shaderProgram.shaders.getNumItems(); shaderNdx++) in writeShaderProgram() local 83 …i::Shader& shader = dynamic_cast<const xe::ri::Shader&>(shaderProgram.shaders.getItem(shaderNdx)); in writeShaderProgram()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
D | vktRayTracingBuildLargeTests.cpp | 185 std::string generateDummyWork (const deUint32 shaderNdx) const; 220 std::string RayTracingTestCase::generateDummyWork (const deUint32 shaderNdx) const in generateDummyWork() 224 for (deUint32 n = 0; n < shaderNdx % 256; ++n) in generateDummyWork() 260 const deUint32 shaderNdx = m_data.width * y + x; in initPrograms() local 261 const bool dummyWork = (shaderNdx % 43 == 0); in initPrograms() 272 << (dummyWork ? generateDummyWork(shaderNdx) : "") << in initPrograms() 276 …programCollection.glslSources.add("call" + de::toString(shaderNdx)) << glu::CallableSource(updateR… in initPrograms()
|
D | vktRayTracingCaptureReplayTests.cpp | 355 for (deUint32 shaderNdx = 0; shaderNdx < RTCR_SHADER_COUNT; ++shaderNdx) in initRayTracingShaders() local 358 shaderName << "chit" << shaderNdx; in initRayTracingShaders() 359 …eShaderModule(vkd, device, context.getBinaryCollection().get(shaderName.str()), 0), 2 + shaderNdx); in initRayTracingShaders() 849 for (deUint32 shaderNdx = 0; shaderNdx < RTCR_SHADER_COUNT; ++shaderNdx) in initPrograms() local 851 deUint32 colorValue = 2 * (shaderNdx + 1); in initPrograms() 862 shaderName << "chit" << shaderNdx; in initPrograms()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
D | vktRayTracingBuildLargeTests.cpp | 185 std::string generateDummyWork (const deUint32 shaderNdx) const; 220 std::string RayTracingTestCase::generateDummyWork (const deUint32 shaderNdx) const in generateDummyWork() 224 for (deUint32 n = 0; n < shaderNdx % 256; ++n) in generateDummyWork() 260 const deUint32 shaderNdx = m_data.width * y + x; in initPrograms() local 261 const bool dummyWork = (shaderNdx % 43 == 0); in initPrograms() 272 << (dummyWork ? generateDummyWork(shaderNdx) : "") << in initPrograms() 276 …programCollection.glslSources.add("call" + de::toString(shaderNdx)) << glu::CallableSource(updateR… in initPrograms()
|
D | vktRayTracingCaptureReplayTests.cpp | 355 for (deUint32 shaderNdx = 0; shaderNdx < RTCR_SHADER_COUNT; ++shaderNdx) in initRayTracingShaders() local 358 shaderName << "chit" << shaderNdx; in initRayTracingShaders() 359 …eShaderModule(vkd, device, context.getBinaryCollection().get(shaderName.str()), 0), 2 + shaderNdx); in initRayTracingShaders() 849 for (deUint32 shaderNdx = 0; shaderNdx < RTCR_SHADER_COUNT; ++shaderNdx) in initPrograms() local 851 deUint32 colorValue = 2 * (shaderNdx + 1); in initPrograms() 862 shaderName << "chit" << shaderNdx; in initPrograms()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemStorageBufferTests.cpp | 786 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderTypes); ++shaderNdx) in createRWStorageBufferTests() local 788 const glu::ShaderType shaderType = shaderTypes[shaderNdx]; in createRWStorageBufferTests() 927 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderTypes); ++shaderNdx) in createAtomicStorageBufferTests() local 929 const glu::ShaderType shaderType = shaderTypes[shaderNdx]; in createAtomicStorageBufferTests()
|
D | vktProtectedMemYCbCrConversionTests.cpp | 1438 for (size_t shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderTypes); shaderNdx++) in createYCbCrConversionTests() local 1440 const char* shaderTypeName = shaderTypes[shaderNdx].name; in createYCbCrConversionTests() 1477 const TestConfig config (shaderTypes[shaderNdx].type, in createYCbCrConversionTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/ |
D | vktProtectedMemStorageBufferTests.cpp | 786 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderTypes); ++shaderNdx) in createRWStorageBufferTests() local 788 const glu::ShaderType shaderType = shaderTypes[shaderNdx]; in createRWStorageBufferTests() 927 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderTypes); ++shaderNdx) in createAtomicStorageBufferTests() local 929 const glu::ShaderType shaderType = shaderTypes[shaderNdx]; in createAtomicStorageBufferTests()
|
D | vktProtectedMemYCbCrConversionTests.cpp | 1438 for (size_t shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderTypes); shaderNdx++) in createYCbCrConversionTests() local 1440 const char* shaderTypeName = shaderTypes[shaderNdx].name; in createYCbCrConversionTests() 1477 const TestConfig config (shaderTypes[shaderNdx].type, in createYCbCrConversionTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ |
D | vktBuildPrograms.cpp | 222 for (size_t shaderNdx = 0; shaderNdx < buildInfo.shaders.size(); shaderNdx++) in writeBuildLogs() local 224 const glu::ShaderInfo& shaderInfo = buildInfo.shaders[shaderNdx]; in writeBuildLogs()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ |
D | vktBuildPrograms.cpp | 222 for (size_t shaderNdx = 0; shaderNdx < buildInfo.shaders.size(); shaderNdx++) in writeBuildLogs() local 224 const glu::ShaderInfo& shaderInfo = buildInfo.shaders[shaderNdx]; in writeBuildLogs()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_rate/ |
D | vktFragmentShadingRateBasic.cpp | 3151 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderCases); shaderNdx++) in createBasicTests() local 3154 if (groupParams->useSecondaryCmdBuffer && (shaderNdx != 0)) in createBasicTests() 3171 bool useGeometryShader = (shaderCases[shaderNdx].count == 1u); in createBasicTests() 3172 bool useMeshShader = (shaderCases[shaderNdx].count == 2u); in createBasicTests() 3242 …sampGroup->addChild(new FSRTestCase(testCtx, shaderCases[shaderNdx].name, shaderCases[shaderNdx].d… in createBasicTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_rate/ |
D | vktFragmentShadingRateBasic.cpp | 3151 for (int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(shaderCases); shaderNdx++) in createBasicTests() local 3154 if (groupParams->useSecondaryCmdBuffer && (shaderNdx != 0)) in createBasicTests() 3171 bool useGeometryShader = (shaderCases[shaderNdx].count == 1u); in createBasicTests() 3172 bool useMeshShader = (shaderCases[shaderNdx].count == 2u); in createBasicTests() 3242 …sampGroup->addChild(new FSRTestCase(testCtx, shaderCases[shaderNdx].name, shaderCases[shaderNdx].d… in createBasicTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/query_pool/ |
D | vktQueryPoolStatisticsTests.cpp | 3260 for(int shaderNdx = 0; shaderNdx < DE_LENGTH_OF_ARRAY(localSize); ++shaderNdx) in QueryPoolStatisticsTest() local 3263 shaderName<< "compute_" << shaderNdx; in QueryPoolStatisticsTest() 3265 localSize[shaderNdx], in QueryPoolStatisticsTest() 3266 groupSize[shaderNdx], in QueryPoolStatisticsTest() 3297 for(size_t shaderNdx = 0; shaderNdx < m_parameters.size(); ++shaderNdx) in initPrograms() local 3301 …ameters[shaderNdx].localSize.x() << ", local_size_y = " << m_parameters[shaderNdx].localSize.y() <… in initPrograms() 3303 …sourceCollections.glslSources.add(m_parameters[shaderNdx].shaderName) << glu::ComputeSource(src.st… in initPrograms()
|