Home
last modified time | relevance | path

Searched refs:compileOptions (Results 1 – 25 of 159) sorted by relevance

1234567

/external/angle/src/tests/compiler_tests/
DExpressionLimit_test.cpp225 const ShCompileOptions &compileOptions, in CheckShaderCompilation() argument
228 bool success = sh::Compile(compiler, &source, 1, compileOptions) != 0; in CheckShaderCompilation()
262 ShCompileOptions compileOptions = {}; in TEST_F() local
263 compileOptions.limitExpressionComplexity = true; in TEST_F()
268 compileOptions, nullptr)); in TEST_F()
272 compileOptions, kExpressionTooComplex)); in TEST_F()
274 compileOptions.limitExpressionComplexity = false; in TEST_F()
277 compileOptions, nullptr)); in TEST_F()
286 ShCompileOptions compileOptions = {}; in TEST_F() local
287 compileOptions.limitExpressionComplexity = true; in TEST_F()
[all …]
DEmulateGLBaseVertexBaseInstance_test.cpp33 ShCompileOptions *compileOptions = nullptr) in CheckCompileFailure() argument
36 if (compileOptions != nullptr) in CheckCompileFailure()
38 options = *compileOptions; in CheckCompileFailure()
77 ShCompileOptions compileOptions = {}; in TEST_F() local
78 compileOptions.objectCode = true; in TEST_F()
79 compileOptions.emulateGLBaseVertexBaseInstance = true; in TEST_F()
81 compile(shaderString, compileOptions); in TEST_F()
94 ShCompileOptions compileOptions = {}; in TEST_F() local
95 compileOptions.objectCode = true; in TEST_F()
96 compileOptions.emulateGLBaseVertexBaseInstance = true; in TEST_F()
[all …]
DEmulateGLDrawID_test.cpp32 ShCompileOptions compileOptions = {}; in CheckCompileFailure() local
38 compileOptions, &translatedCode, &infoLog); in CheckCompileFailure()
68 ShCompileOptions compileOptions = {}; in TEST_F() local
69 compileOptions.objectCode = true; in TEST_F()
70 compileOptions.emulateGLDrawID = true; in TEST_F()
72 compile(shaderString, compileOptions); in TEST_F()
73 compile("#version 100\n" + shaderString, compileOptions); in TEST_F()
74 compile("#version 300 es\n" + shaderString, compileOptions); in TEST_F()
96 ShCompileOptions compileOptions = {}; in TEST_F() local
97 compileOptions.objectCode = true; in TEST_F()
[all …]
DAPPLE_clip_distance_test.cpp92 ShCompileOptions compileOptions = {}; in TestShaderCompile() local
93 compileOptions.objectCode = true; in TestShaderCompile()
95 bool success = sh::Compile(mCompiler, shaderStrings, 3, compileOptions); in TestShaderCompile()
162 ShCompileOptions compileOptions = {}; in TEST_P() local
163 compileOptions.objectCode = true; in TEST_P()
165 bool success = sh::Compile(mCompiler, shaderStrings, 1, compileOptions); in TEST_P()
DOES_sample_variables_test.cpp80 ShCompileOptions compileOptions = {}; in TestShaderCompile() local
81 compileOptions.objectCode = true; in TestShaderCompile()
83 bool success = sh::Compile(mCompiler, shaderStrings, 3, compileOptions); in TestShaderCompile()
DWorkGroupSize_test.cpp38 ShCompileOptions compileOptions = {}; in compile() local
39 compileOptions.intermediateTree = true; in compile()
42 bool status = mTranslator->compile(shaderStrings, 1, compileOptions); in compile()
DShCompile_test.cpp207 ShCompileOptions compileOptions = {}; in TEST_F() local
208 compileOptions.objectCode = true; in TEST_F()
213 sh::Compile(mCompiler, parts, 1, compileOptions); in TEST_F()
221 sh::Compile(mCompiler, parts, 1, compileOptions); in TEST_F()
DOVR_multiview_test.cpp570 ShCompileOptions compileOptions = {}; in TEST_F() local
571 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F()
573 compile(shaderString, compileOptions); in TEST_F()
597 ShCompileOptions compileOptions = {}; in TEST_F() local
598 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F()
599 compile(shaderString, compileOptions); in TEST_F()
DOVR_multiview2_test.cpp553 ShCompileOptions compileOptions = {}; in TEST_F() local
554 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F()
555 compile(shaderString, compileOptions); in TEST_F()
579 ShCompileOptions compileOptions = {}; in TEST_F() local
580 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F()
581 compile(shaderString, compileOptions); in TEST_F()
/external/angle/src/compiler/translator/
DCompiler.cpp187 const ShCompileOptions &compileOptions) in RemoveInvariant() argument
193 if (compileOptions.removeInvariantAndCentroidForESSL3 && shaderVersion >= 300 && in RemoveInvariant()
389 bool TCompiler::shouldRunLoopAndIndexingValidation(const ShCompileOptions &compileOptions) const in shouldRunLoopAndIndexingValidation()
395 compileOptions.validateLoopIndexing; in shouldRunLoopAndIndexingValidation()
423 const ShCompileOptions &compileOptions) in compileTreeForTesting() argument
425 return compileTreeImpl(shaderStrings, numStrings, compileOptions); in compileTreeForTesting()
430 const ShCompileOptions &compileOptions) in compileTreeImpl() argument
433 mCompileOptions = compileOptions; in compileTreeImpl()
441 ResetExtensionBehavior(mResources, mExtensionBehavior, compileOptions); in compileTreeImpl()
445 const bool glDrawIDSupported = compileOptions.emulateGLDrawID; in compileTreeImpl()
[all …]
DCompiler.h57 const ShCompileOptions &compileOptions);
104 const ShCompileOptions &compileOptions);
108 const ShCompileOptions &compileOptions);
149 bool shouldRunLoopAndIndexingValidation(const ShCompileOptions &compileOptions) const;
202 const ShCompileOptions &compileOptions,
233 const ShCompileOptions &compileOptions) in initBuiltInFunctionEmulator() argument
237 const ShCompileOptions &compileOptions,
303 const ShCompileOptions &compileOptions);
315 const ShCompileOptions &compileOptions);
/external/angle/src/compiler/translator/glsl/
DTranslatorESSL.cpp27 const ShCompileOptions &compileOptions) in initBuiltInFunctionEmulator() argument
29 if (compileOptions.emulateAtan2FloatFunction) in initBuiltInFunctionEmulator()
36 const ShCompileOptions &compileOptions, in translate() argument
47 compileOptions.pls.type == ShPixelLocalStorageType::ImageLoadStore)) in translate()
59 writeExtensionBehavior(compileOptions); in translate()
63 WritePragma(sink, compileOptions, getPragma()); in translate()
94 if (hasClipDistance() && compileOptions.emulateClipDistanceState) in translate()
158 TOutputESSL outputESSL(this, sink, compileOptions); in translate()
179 void TranslatorESSL::writeExtensionBehavior(const ShCompileOptions &compileOptions) in writeExtensionBehavior() argument
207 EmitMultiviewGLSL(*this, compileOptions, iter->first, iter->second, sink); in writeExtensionBehavior()
[all …]
DTranslatorGLSL.cpp26 const ShCompileOptions &compileOptions) in initBuiltInFunctionEmulator() argument
28 if (compileOptions.emulateAbsIntFunction) in initBuiltInFunctionEmulator()
33 if (compileOptions.emulateIsnanFloatFunction) in initBuiltInFunctionEmulator()
38 if (compileOptions.emulateAtan2FloatFunction) in initBuiltInFunctionEmulator()
48 const ShCompileOptions &compileOptions, in translate() argument
57 writeExtensionBehavior(root, compileOptions); in translate()
61 WritePragma(sink, compileOptions, getPragma()); in translate()
67 if (compileOptions.flattenPragmaSTDGLInvariantAll && getPragma().stdgl.invariantAll && in translate()
68 !sh::RemoveInvariant(getShaderType(), getShaderVersion(), getOutputType(), compileOptions)) in translate()
93 if (compileOptions.rewriteTexelFetchOffsetToTexelFetch) in translate()
[all …]
DTranslatorESSL.h22 const ShCompileOptions &compileOptions) override;
25 const ShCompileOptions &compileOptions,
30 void writeExtensionBehavior(const ShCompileOptions &compileOptions);
DTranslatorGLSL.h22 const ShCompileOptions &compileOptions) override;
25 const ShCompileOptions &compileOptions,
31 void writeExtensionBehavior(TIntermNode *root, const ShCompileOptions &compileOptions);
/external/angle/src/compiler/translator/tree_ops/
DRewritePixelLocalStorage.cpp98 const ShCompileOptions &compileOptions, in RewritePLSTraverser() argument
102 mCompileOptions(&compileOptions), in RewritePLSTraverser()
325 const ShCompileOptions &compileOptions, in RewritePLSToImagesTraverser() argument
327 : RewritePLSTraverser(compiler, symbolTable, compileOptions, shaderVersion) in RewritePLSToImagesTraverser()
578 const ShCompileOptions &compileOptions, in injectPrePLSCode() argument
593 switch (compileOptions.pls.fragmentSyncType) in injectPrePLSCode()
625 const ShCompileOptions &compileOptions, in injectPostPLSCode() argument
634 switch (compileOptions.pls.fragmentSyncType) in injectPostPLSCode()
670 const ShCompileOptions &compileOptions, in RewritePLSToFramebufferFetchTraverser() argument
672 : RewritePLSTraverser(compiler, symbolTable, compileOptions, shaderVersion) in RewritePLSToFramebufferFetchTraverser()
[all …]
/external/angle/src/compiler/translator/hlsl/
DTranslatorHLSL.cpp40 const ShCompileOptions &compileOptions, in translate() argument
139 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in translate()
177 if (compileOptions.expandSelectHLSLIntegerPowExpressions) in translate()
185 if (compileOptions.rewriteTexelFetchOffsetToTexelFetch) in translate()
193 if (compileOptions.rewriteIntegerUnaryMinusOperator && getShaderType() == GL_VERTEX_SHADER) in translate()
221 if (getShaderVersion() == 300 && compileOptions.allowTranslateUniformBlockToStructuredBuffer) in translate()
233 compileOptions, getComputeShaderLocalSize(), &getSymbolTable(), perfDiagnostics, in translate()
/external/angle/samples/shader_translator/
Dshader_translator.cpp36 static bool CompileFile(char *fileName, ShHandle compiler, const ShCompileOptions &compileOptions);
82 ShCompileOptions compileOptions = {}; in main() local
109 compileOptions.intermediateTree = true; in main()
112 compileOptions.objectCode = true; in main()
188 compileOptions.initializeUninitializedLocals = true; in main()
195 compileOptions.initializeUninitializedLocals = true; in main()
199 compileOptions.initializeUninitializedLocals = true; in main()
262 compileOptions.initializeBuiltinsForInstancedMultiview = true; in main()
263 compileOptions.selectViewInNvGLSLVertexShader = true; in main()
354 compileOptions.selectViewInNvGLSLVertexShader = false; in main()
[all …]
/external/angle/src/tests/perf_tests/
DCompilerPerf.cpp308 ShCompileOptions compileOptions = {}; in step() local
309 compileOptions.objectCode = true; in step()
310 compileOptions.initializeUninitializedLocals = true; in step()
311 compileOptions.initOutputVariables = true; in step()
315 if (!mTranslator->compile(shaderStrings, 1, compileOptions)) in step()
324 mTranslator->compile(shaderStrings, 1, compileOptions); in step()
/external/angle/src/tests/test_utils/
Dcompiler_test.cpp68 const ShCompileOptions &compileOptions, in compileTestShader() argument
81 ShCompileOptions options = compileOptions; in compileTestShader()
101 const ShCompileOptions &compileOptions, in compileTestShader() argument
108 return compileTestShader(type, spec, output, shaderString, &resources, compileOptions, in compileTestShader()
141 const ShCompileOptions &compileOptions) in compile() argument
147 compileWithSettings(code.first, shaderString, compileOptions, &code.second, &infoLog); in compile()
157 const ShCompileOptions &compileOptions, in compileWithSettings() argument
162 compileOptions, translatedCode, infoLog); in compileWithSettings()
Dcompiler_test.h31 const ShCompileOptions &compileOptions,
39 const ShCompileOptions &compileOptions,
55 void compile(const std::string &shaderString, const ShCompileOptions &compileOptions);
96 const ShCompileOptions &compileOptions,
DShaderExtensionTest.h67 ShCompileOptions compileOptions = {}; in TestShaderCompile() local
68 compileOptions.objectCode = true; in TestShaderCompile()
69 bool success = sh::Compile(mCompiler, shaderStrings, 3, compileOptions); in TestShaderCompile()
/external/angle/src/compiler/translator/tree_ops/spirv/
DEmulateDithering.cpp72 const ShCompileOptions &compileOptions, in EmitFragmentOutputDither() argument
80 bool roundOutputAfterDithering = compileOptions.roundOutputAfterDithering; in EmitFragmentOutputDither()
237 const ShCompileOptions &compileOptions, in EmitFragmentVariableDither() argument
261 EmitFragmentOutputDither(compiler, compileOptions, symbolTable, ditherBlock, ditherControl, in EmitFragmentVariableDither()
270 EmitFragmentOutputDither(compiler, compileOptions, symbolTable, ditherBlock, ditherControl, in EmitFragmentVariableDither()
276 const ShCompileOptions &compileOptions, in EmitDitheringBlock() argument
428 EmitFragmentVariableDither(compiler, compileOptions, symbolTable, ditherBlock, in EmitDitheringBlock()
437 const ShCompileOptions &compileOptions, in EmulateDithering() argument
446 TIntermNode *ditherCode = EmitDitheringBlock(compiler, compileOptions, symbolTable, specConst, in EmulateDithering()
/external/angle/src/compiler/translator/spirv/
DTranslatorSPIRV.cpp534 const ShCompileOptions &compileOptions, in AddVertexTransformationSupport() argument
587 if (compileOptions.addVulkanDepthCorrection) in AddVertexTransformationSupport()
630 const ShCompileOptions &compileOptions, in InsertFragCoordCorrection() argument
653 const ShCompileOptions &compileOptions) in HasFramebufferFetch() argument
659 (compileOptions.pls.type == ShPixelLocalStorageType::FramebufferFetch && in HasFramebufferFetch()
754 const ShCompileOptions &compileOptions, in translateImpl() argument
761 if (!ShaderBuiltinsWorkaround(this, root, &getSymbolTable(), compileOptions)) in translateImpl()
821 if (!MonomorphizeUnsupportedFunctions(this, root, &getSymbolTable(), compileOptions, args)) in translateImpl()
852 if (compileOptions.emulateSeamfulCubeMapSampling) in translateImpl()
970 if (compileOptions.addVulkanXfbExtensionSupportCode) in translateImpl()
[all …]
/external/angle/src/libANGLE/renderer/
DShaderImpl.cpp86 ShCompileOptions *compileOptions) in compileImpl() argument
89 compileOptions->validateAST = true; in compileImpl()
94 std::make_shared<TranslateTask>(compilerInstance->getHandle(), *compileOptions, source); in compileImpl()

1234567