Lines Matching defs:program

165 		buildInfo->program.linkOk	 = false;
166 buildInfo->program.infoLog += "\n" + validationLog.str();
638 ProgramBinary* buildProgram (const GlslSource& program, glu::ShaderProgramInfo* buildInfo, const tcu::CommandLine& commandLine)
640 const SpirvVersion spirvVersion = program.buildOptions.targetVersion;
653 getBuildOptions(cachekey, program.buildOptions, optimizationRecipe);
657 if (!program.sources[i].empty())
661 for (std::vector<std::string>::const_iterator it = program.sources[i].begin(); it != program.sources[i].end(); ++it)
674 buildInfo->program.infoLog = "Loaded from cache";
675 buildInfo->program.linkOk = true;
676 buildInfo->program.linkTimeUs = 0;
680 if (!program.sources[shaderType].empty())
700 if (!compileGlslToSpirV(program, &nonStrippedBinary, buildInfo))
710 validateCompiledBinary(binary, buildInfo, program.buildOptions.getSpirvValidatorOptions());
716 validateCompiledBinary(binary, buildInfo, program.buildOptions.getSpirvValidatorOptions());
726 ProgramBinary* buildProgram (const HlslSource& program, glu::ShaderProgramInfo* buildInfo, const tcu::CommandLine& commandLine)
728 const SpirvVersion spirvVersion = program.buildOptions.targetVersion;
741 getBuildOptions(cachekey, program.buildOptions, optimizationRecipe);
745 if (!program.sources[i].empty())
749 for (std::vector<std::string>::const_iterator it = program.sources[i].begin(); it != program.sources[i].end(); ++it)
762 buildInfo->program.infoLog = "Loaded from cache";
763 buildInfo->program.linkOk = true;
764 buildInfo->program.linkTimeUs = 0;
768 if (!program.sources[shaderType].empty())
788 if (!compileHlslToSpirV(program, &nonStrippedBinary, buildInfo))
798 validateCompiledBinary(binary, buildInfo, program.buildOptions.getSpirvValidatorOptions());
804 validateCompiledBinary(binary, buildInfo, program.buildOptions.getSpirvValidatorOptions());
816 ProgramBinary* assembleProgram (const SpirVAsmSource& program, SpirVProgramInfo* buildInfo, const tcu::CommandLine& commandLine)
818 const SpirvVersion spirvVersion = program.buildOptions.targetVersion;
840 cachekey += program.source;
848 buildInfo->source = program.source;
858 if (!assembleSpirV(&program, &binary, buildInfo, spirvVersion))
863 validateCompiledBinary(binary, buildInfo, program.buildOptions.getSpirvValidatorOptions());
869 validateCompiledBinary(binary, buildInfo, program.buildOptions.getSpirvValidatorOptions());
881 void disassembleProgram (const ProgramBinary& program, std::ostream* dst)
883 if (program.getFormat() == PROGRAM_FORMAT_SPIRV)
885 TCU_CHECK_INTERNAL(isSaneSpirVBinary(program));
888 disassembleSpirV(program.getSize()/sizeof(deUint32), (const deUint32*)program.getBinary(), dst,
889 extractSpirvVersion(program));
894 TCU_THROW(NotSupportedError, "Unsupported program format");
897 bool validateProgram (const ProgramBinary& program, std::ostream* dst, const SpirvValidatorOptions& options)
899 if (program.getFormat() == PROGRAM_FORMAT_SPIRV)
901 if (!isSaneSpirVBinary(program))
908 return validateSpirV(program.getSize()/sizeof(deUint32), (const deUint32*)program.getBinary(), dst, options);
913 TCU_THROW(NotSupportedError, "Unsupported program format");
934 TCU_THROW(NotSupportedError, "Unsupported program format");