Home
last modified time | relevance | path

Searched refs:shaderSpec (Results 1 – 25 of 31) sorted by relevance

12

/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmWorkgroupMemoryTests.cpp273 map<string, string> shaderSpec; in addComputeWorkgroupMemoryTests() local
275 shaderSpec["sizeBytes"] = "8"; in addComputeWorkgroupMemoryTests()
276 shaderSpec["dataTypeDecl"] = "%f64 = OpTypeFloat 64"; in addComputeWorkgroupMemoryTests()
277 shaderSpec["dataType"] = "f64"; in addComputeWorkgroupMemoryTests()
278 shaderSpec["capabilities"] = "OpCapability Float64\n"; in addComputeWorkgroupMemoryTests()
290 spec.assembly = shaderSource.specialize(shaderSpec); in addComputeWorkgroupMemoryTests()
303 map<string, string> shaderSpec; in addComputeWorkgroupMemoryTests() local
305 shaderSpec["sizeBytes"] = "4"; in addComputeWorkgroupMemoryTests()
306 shaderSpec["dataTypeDecl"] = "%f32 = OpTypeFloat 32"; in addComputeWorkgroupMemoryTests()
307 shaderSpec["dataType"] = "f32"; in addComputeWorkgroupMemoryTests()
[all …]
DvktSpvAsmVariableInitTests.cpp134 map<string, string> shaderSpec; in addComputeVariableInitPrivateTest() local
180 shaderSpec["type"] = type; in addComputeVariableInitPrivateTest()
182shaderSpec["arrayStrideDecoration"] = "OpDecorate %outputArray ArrayStride " + de::toString(numCom… in addComputeVariableInitPrivateTest()
183 shaderSpec["count"] = de::toString(numElements); in addComputeVariableInitPrivateTest()
184 shaderSpec["constData"] = type + "_1"; in addComputeVariableInitPrivateTest()
189 shaderSpec["variableInit"] = " %f1 = OpVariable %dataPtr Private %" + type + "_1\n"; in addComputeVariableInitPrivateTest()
190 shaderSpec["dataLoad"] = " %outputData = OpLoad %" + type + " %f1\n"; in addComputeVariableInitPrivateTest()
195 shaderSpec["capabilities"] = " OpCapability VariablePointers\n"; in addComputeVariableInitPrivateTest()
196 shaderSpec["extensions"] = " OpExtension \"SPV_KHR_variable_pointers\"\n"; in addComputeVariableInitPrivateTest()
197shaderSpec["variableInit"] = " %dataPtrPtr = OpTypePointer Private %_ptr_" + type + "_global… in addComputeVariableInitPrivateTest()
[all …]
/external/deqp/modules/glshared/
DglsShaderExecUtil.cpp94 static std::string generateVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPref… in generateVertexShader() argument
96 const bool usesInout = glu::glslVersionUsesInOutQualifiers(shaderSpec.version); in generateVertexShader()
103 src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; in generateVertexShader()
105 if (!shaderSpec.globalDeclarations.empty()) in generateVertexShader()
106 src << shaderSpec.globalDeclarations << "\n"; in generateVertexShader()
110 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generateVertexShader()
113 …for (vector<Symbol>::const_iterator output = shaderSpec.outputs.begin(); output != shaderSpec.outp… in generateVertexShader()
136 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generateVertexShader()
140 …for (vector<Symbol>::const_iterator output = shaderSpec.outputs.begin(); output != shaderSpec.outp… in generateVertexShader()
145 std::istringstream opSrc (shaderSpec.source); in generateVertexShader()
[all …]
DglsShaderExecUtil.hpp91 ShaderExecutor (const glu::RenderContext& renderCtx, const ShaderSpec& shaderSpec);
103 …or (const glu::RenderContext& renderCtx, glu::ShaderType shaderType, const ShaderSpec& shaderSpec);
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp170 static std::string generatePassthroughVertexShader (const ShaderSpec& shaderSpec, const char* input… in generatePassthroughVertexShader() argument
175 src << glu::getGLSLVersionDeclaration(shaderSpec.glslVersion) << "\n"; in generatePassthroughVertexShader()
177 if (!shaderSpec.globalDeclarations.empty()) in generatePassthroughVertexShader()
178 src << shaderSpec.globalDeclarations << "\n"; in generatePassthroughVertexShader()
182 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generatePassthroughVertexShader()
193 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generatePassthroughVertexShader()
201 static std::string generateVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPref… in generateVertexShader() argument
207 src << glu::getGLSLVersionDeclaration(shaderSpec.glslVersion) << "\n"; in generateVertexShader()
209 if (!shaderSpec.globalDeclarations.empty()) in generateVertexShader()
210 src << shaderSpec.globalDeclarations << "\n"; in generateVertexShader()
[all …]
DvktShaderExecutor.hpp105 ShaderExecutor (Context& context, const ShaderSpec& shaderSpec) in ShaderExecutor() argument
107 , m_shaderSpec (shaderSpec) in ShaderExecutor()
119 void generateSources (glu::ShaderType shaderType, const ShaderSpec& shaderSpec, vk::SourceColle…
120 …utor (Context& context, glu::ShaderType shaderType, const ShaderSpec& shaderSpec, vk::VkDescripto…
DvktShaderClockTests.cpp97 …ShaderClockTestInstance(Context& context, bool realtimeTest, const ShaderSpec& shaderSpec, glu::Sh… in ShaderClockTestInstance() argument
100 , m_executor(createExecutor(m_context, shaderType, shaderSpec)) in ShaderClockTestInstance()
DvktOpaqueTypeIndexingTests.cpp223 const ShaderSpec& shaderSpec,
243 const ShaderSpec& shaderSpec, in OpaqueTypeIndexingTestInstance() argument
249 , m_shaderSpec (shaderSpec) in OpaqueTypeIndexingTestInstance()
639 const ShaderSpec& shaderSpec,
655 const ShaderSpec& shaderSpec, in SamplerIndexingCaseInstance() argument
660 : OpaqueTypeIndexingTestInstance (context, shaderType, shaderSpec, name, indexExprType) in SamplerIndexingCaseInstance()
1149 const ShaderSpec& shaderSpec,
1169 const ShaderSpec& shaderSpec, in BlockArrayIndexingCaseInstance() argument
1176 : OpaqueTypeIndexingTestInstance (context, shaderType, shaderSpec, name, indexExprType) in BlockArrayIndexingCaseInstance()
1520 const ShaderSpec& shaderSpec,
[all …]
/external/deqp/external/openglcts/modules/common/
DglcShaderMacroTests.cpp39 …deqp::Context& context, const char* name, glu::ShaderType shaderType, const ShaderSpec& shaderSpec,
51 const ShaderSpec& shaderSpec, int expectedOutput) in ExecutorTestCase() argument
54 , m_shaderSpec(shaderSpec) in ExecutorTestCase()
111 ShaderSpec shaderSpec; in init() local
112 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in init()
113 shaderSpec.source = fragmentPrecisionShaderTemplate; in init()
114 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP))); in init()
122 shaderSpec.version = glu::GLSL_VERSION_320_ES; in init()
129 shaderSpec.version = glu::GLSL_VERSION_310_ES; in init()
140 addChild(new ExecutorTestCase(m_context, caseName.c_str(), shaderType, shaderSpec, 1)); in init()
DglcShaderConstExprTests.cpp76 …deqp::Context& context, const char* name, glu::ShaderType shaderType, const ShaderSpec& shaderSpec,
91 const ShaderSpec& shaderSpec, OutputType expectedOutput) in ExecutorTestCase() argument
94 , m_shaderSpec(shaderSpec) in ExecutorTestCase()
185 ShaderSpec shaderSpec; in createTestCasesForAllShaderTypes() local
186 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in createTestCasesForAllShaderTypes()
187 shaderSpec.source = params.source; in createTestCasesForAllShaderTypes()
188 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(params.outType, glu::PRECISION_HIGHP))); in createTestCasesForAllShaderTypes()
204 shaderSpec.version = glu::GLSL_VERSION_320_ES; in createTestCasesForAllShaderTypes()
211 shaderSpec.version = glu::GLSL_VERSION_310_ES; in createTestCasesForAllShaderTypes()
223 shaderSpec.globalDeclarations += "precision highp float;\n"; in createTestCasesForAllShaderTypes()
[all …]
/external/angle/src/compiler/preprocessor/
DPreprocessor.h28 PreprocessorSettings(ShShaderSpec shaderSpec) in PreprocessorSettings()
29 : maxMacroExpansionDepth(1000), shaderSpec(shaderSpec) in PreprocessorSettings()
35 ShShaderSpec shaderSpec; member
DDirectiveParser.cpp680 if (mSettings.shaderSpec == SH_WEBGL_SPEC) in parseExtension()
744 if (sh::IsDesktopGLSpec(mSettings.shaderSpec)) in parseVersion()
759 ASSERT(!sh::IsDesktopGLSpec(mSettings.shaderSpec)); in parseVersion()
769 ASSERT(sh::IsDesktopGLSpec(mSettings.shaderSpec)); in parseVersion()
809 mDirectiveHandler->handleVersion(token->location, version, mSettings.shaderSpec); in parseVersion()
DMacroExpander.cpp127 if (!mContextStack.empty() && sh::IsWebGLBasedSpec(mSettings.shaderSpec)) in lex()
442 PreprocessorSettings nestedSettings(mSettings.shaderSpec); in collectMacroArgs()
/external/angle/src/tests/deqp_support/
DglcShaderConstExprTests_override.cpp81 const ShaderSpec &shaderSpec,
98 const ShaderSpec &shaderSpec, in ExecutorTestCase() argument
102 m_shaderSpec(shaderSpec), in ExecutorTestCase()
195 ShaderSpec shaderSpec; in createTestCasesForAllShaderTypes() local
196 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in createTestCasesForAllShaderTypes()
197 shaderSpec.source = params.source; in createTestCasesForAllShaderTypes()
198 shaderSpec.outputs.push_back( in createTestCasesForAllShaderTypes()
215 shaderSpec.version = glu::GLSL_VERSION_320_ES; in createTestCasesForAllShaderTypes()
222 shaderSpec.version = glu::GLSL_VERSION_310_ES; in createTestCasesForAllShaderTypes()
234 shaderSpec.globalDeclarations += "precision highp float;\n"; in createTestCasesForAllShaderTypes()
[all …]
/external/angle/src/tests/preprocessor_tests/
DPreprocessorTest.h23 PreprocessorTest(ShShaderSpec shaderSpec) in PreprocessorTest() argument
24 : mPreprocessor(&mDiagnostics, &mDirectiveHandler, pp::PreprocessorSettings(shaderSpec)) in PreprocessorTest()
/external/angle/src/compiler/translator/
DSymbolTable.cpp463 const TSymbol *SymbolRule::get(ShShaderSpec shaderSpec, in get() argument
469 if (IsDesktopGLSpec(shaderSpec) != (mIsDesktop == 1)) in get()
487 const TSymbol *FindMangledBuiltIn(ShShaderSpec shaderSpec, in FindMangledBuiltIn() argument
499 rules[ruleIndex].get(shaderSpec, shaderVersion, shaderType, resources, symbolTable); in FindMangledBuiltIn()
510 ShShaderSpec shaderSpec, in matches() argument
521 if (IsDesktopGLSpec(shaderSpec)) in matches()
DSymbolTable.h87 const TSymbol *get(ShShaderSpec shaderSpec,
162 const TSymbol *FindMangledBuiltIn(ShShaderSpec shaderSpec,
183 ShShaderSpec shaderSpec,
Dutil.h91 bool IsSpecWithFunctionBodyNewScope(ShShaderSpec shaderSpec, int shaderVersion);
Dutil.cpp863 bool IsSpecWithFunctionBodyNewScope(ShShaderSpec shaderSpec, int shaderVersion) in IsSpecWithFunctionBodyNewScope() argument
865 return (shaderVersion == 100 && !sh::IsWebGLBasedSpec(shaderSpec)); in IsSpecWithFunctionBodyNewScope()
/external/deqp/modules/gles31/functional/
Des31fShaderBuiltinConstantTests.cpp206 ShaderSpec shaderSpec; in createGetConstantExecutor() local
208 shaderSpec.version = glu::getContextTypeGLSLVersion(renderCtx.getType()); in createGetConstantExecutor()
209 shaderSpec.source = string("result = ") + varName + ";\n"; in createGetConstantExecutor()
211 shaderSpec.outputs.push_back(Symbol("result", glu::VarType(dataType, glu::PRECISION_HIGHP))); in createGetConstantExecutor()
214 shaderSpec.globalDeclarations = "#extension " + extName + " : require\n"; in createGetConstantExecutor()
216 return createExecutor(renderCtx, shaderType, shaderSpec); in createGetConstantExecutor()
Des31fOpaqueTypeIndexingTests.cpp504 ShaderSpec shaderSpec; in iterate() local
510 …getShaderSpec(&shaderSpec, numSamplers, numLookups, &lookupIndices[0], m_context.getRenderContext(… in iterate()
532 …derExecutorPtr executor (createExecutor(m_context.getRenderContext(), m_shaderType, shaderSpec)); in iterate()
857 ShaderSpec shaderSpec; in iterate() local
866 getShaderSpec(&shaderSpec, numInstances, numReads, &readIndices[0], m_context.getRenderContext()); in iterate()
874 ShaderExecutorPtr shaderExecutor (createExecutor(renderCtx, m_shaderType, shaderSpec)); in iterate()
1090 ShaderSpec shaderSpec; in iterate() local
1096 getShaderSpec(&shaderSpec, m_numCounters, numOps, &opIndices[0], m_context.getRenderContext()); in iterate()
1100 ShaderExecutorPtr shaderExecutor (createExecutor(renderCtx, m_shaderType, shaderSpec)); in iterate()
/external/deqp/modules/gles2/functional/
Des2fShaderOperatorTests.cpp1283 ShaderDataSpec shaderSpec; in init() local
1296 shaderSpec.numInputs = 0; in init()
1297 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision; in init()
1298 shaderSpec.output = outDataType; in init()
1299 shaderSpec.resultScale = funcInfo.resultScale; in init()
1300 shaderSpec.resultBias = funcInfo.resultBias; in init()
1367shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax); in init()
1379 …Case(m_context, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp.c_str(), shaderSpec)); in init()
1435 ShaderDataSpec shaderSpec; in init() local
1441 shaderSpec.numInputs = 3; in init()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp1746 ShaderDataSpec shaderSpec; in init() local
1747 shaderSpec.numInputs = 0; in init()
1748 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision; in init()
1749 shaderSpec.output = outDataType; in init()
1750 shaderSpec.resultScale = funcInfo.resultScale; in init()
1751 shaderSpec.resultBias = funcInfo.resultBias; in init()
1752 shaderSpec.referenceScale = funcInfo.referenceScale; in init()
1753 shaderSpec.referenceBias = funcInfo.referenceBias; in init()
1828shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax); in init()
1840 …OperatorCase(m_testCtx, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp, shaderSpec)); in init()
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderOperatorTests.cpp1921 ShaderDataSpec shaderSpec; in init() local
1934 shaderSpec.numInputs = 0; in init()
1935 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision; in init()
1936 shaderSpec.output = outDataType; in init()
1937 shaderSpec.resultScale = funcInfo.resultScale; in init()
1938 shaderSpec.resultBias = funcInfo.resultBias; in init()
1939 shaderSpec.referenceScale = funcInfo.referenceScale; in init()
1940 shaderSpec.referenceBias = funcInfo.referenceBias; in init()
2015shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax); in init()
2027 …OperatorCase(m_context, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp, shaderSpec)); in init()
[all …]
Des3fShaderBuiltinVarTests.cpp118 ShaderSpec shaderSpec; in createGetConstantExecutor() local
120 shaderSpec.version = glu::GLSL_VERSION_300_ES; in createGetConstantExecutor()
121 shaderSpec.source = string("result = ") + varName + ";\n"; in createGetConstantExecutor()
122 shaderSpec.outputs.push_back(Symbol("result", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP))); in createGetConstantExecutor()
124 return createExecutor(renderCtx, shaderType, shaderSpec); in createGetConstantExecutor()

12