Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DExpressionLimit_test.cpp225 ShCompileOptions compileOptions, in CheckShaderCompilation() argument
228 bool success = sh::Compile(compiler, &source, 1, compileOptions) != 0; in CheckShaderCompilation()
262 ShCompileOptions compileOptions = SH_LIMIT_EXPRESSION_COMPLEXITY; in TEST_F() local
267 compileOptions, nullptr)); in TEST_F()
271 compileOptions, kExpressionTooComplex)); in TEST_F()
275 compileOptions & ~SH_LIMIT_EXPRESSION_COMPLEXITY, nullptr)); in TEST_F()
284 ShCompileOptions compileOptions = SH_LIMIT_EXPRESSION_COMPLEXITY; in TEST_F() local
290 compileOptions, nullptr)); in TEST_F()
295 compileOptions, kExpressionTooComplex)); in TEST_F()
300 compileOptions & ~SH_LIMIT_EXPRESSION_COMPLEXITY, nullptr)); in TEST_F()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DShaderVk.cpp28 ShCompileOptions compileOptions = 0; in compile() local
36 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in compile()
40 compileOptions |= SH_CLAMP_INDIRECT_ARRAY_BOUNDS; in compile()
44 compileOptions |= SH_INIT_OUTPUT_VARIABLES; in compile()
50 compileOptions |= SH_CLAMP_POINT_SIZE; in compile()
55 compileOptions |= SH_ADD_BRESENHAM_LINE_RASTER_EMULATION; in compile()
60 compileOptions |= SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING; in compile()
65 compileOptions |= SH_IGNORE_PRECISION_QUALIFIERS; in compile()
70 compileOptions |= SH_FORCE_SHADER_PRECISION_HIGHP_TO_MEDIUMP; in compile()
75 compileOptions |= SH_EARLY_FRAGMENT_TESTS_OPTIMIZATION; in compile()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DCompiler.cpp161 ShCompileOptions compileOptions) in RemoveInvariant() argument
166 if ((compileOptions & SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3) != 0 && in RemoveInvariant()
360 bool TCompiler::shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const in shouldRunLoopAndIndexingValidation()
366 (compileOptions & SH_VALIDATE_LOOP_INDEXING) != 0; in shouldRunLoopAndIndexingValidation()
393 ShCompileOptions compileOptions) in compileTreeForTesting() argument
395 return compileTreeImpl(shaderStrings, numStrings, compileOptions); in compileTreeForTesting()
400 const ShCompileOptions compileOptions) in compileTreeImpl() argument
403 mCompileOptions = compileOptions; in compileTreeImpl()
411 ResetExtensionBehavior(mResources, mExtensionBehavior, compileOptions); in compileTreeImpl()
415 const bool glDrawIDSupported = (compileOptions & SH_EMULATE_GL_DRAW_ID) != 0; in compileTreeImpl()
[all …]
DTranslatorGLSL.cpp26 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument
28 if ((compileOptions & SH_EMULATE_ABS_INT_FUNCTION) != 0) in initBuiltInFunctionEmulator()
33 if ((compileOptions & SH_EMULATE_ISNAN_FLOAT_FUNCTION) != 0) in initBuiltInFunctionEmulator()
38 if ((compileOptions & SH_EMULATE_ATAN2_FLOAT_FUNCTION) != 0) in initBuiltInFunctionEmulator()
48 ShCompileOptions compileOptions, in translate() argument
57 writeExtensionBehavior(root, compileOptions); in translate()
61 WritePragma(sink, compileOptions, getPragma()); in translate()
67 if ((compileOptions & SH_FLATTEN_PRAGMA_STDGL_INVARIANT_ALL) != 0 && in translate()
69 !sh::RemoveInvariant(getShaderType(), getShaderVersion(), getOutputType(), compileOptions)) in translate()
96 if ((compileOptions & SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH) != 0) in translate()
[all …]
DTranslatorESSL.cpp22 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument
24 if ((compileOptions & SH_EMULATE_ATAN2_FLOAT_FUNCTION) != 0) in initBuiltInFunctionEmulator()
31 ShCompileOptions compileOptions, in translate() argument
43 writeExtensionBehavior(compileOptions); in translate()
47 WritePragma(sink, compileOptions, getPragma()); in translate()
93 TOutputESSL outputESSL(this, sink, compileOptions); in translate()
114 void TranslatorESSL::writeExtensionBehavior(ShCompileOptions compileOptions) in writeExtensionBehavior() argument
142 EmitMultiviewGLSL(*this, compileOptions, iter->first, iter->second, sink); in writeExtensionBehavior()
165 ASSERT((compileOptions & SH_EMULATE_GL_DRAW_ID) != 0); in writeExtensionBehavior()
171 ASSERT((compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0); in writeExtensionBehavior()
DTranslatorVulkan.cpp616 ShCompileOptions compileOptions, in InsertFragCoordCorrection() argument
636 if ((compileOptions & SH_ADD_PRE_ROTATION) != 0) in InsertFragCoordCorrection()
684 ShCompileOptions compileOptions, in AddBresenhamEmulationFS() argument
790 if (!InsertFragCoordCorrection(compiler, compileOptions, root, emulationSequence, in AddBresenhamEmulationFS()
807 ShCompileOptions compileOptions, in translateImpl() argument
814 if (!ShaderBuiltinsWorkaround(this, root, &getSymbolTable(), compileOptions)) in translateImpl()
821 writeExtensionBehavior(compileOptions, sink); in translateImpl()
822 WritePragma(sink, compileOptions, getPragma()); in translateImpl()
874 if (!MonomorphizeUnsupportedFunctions(this, root, &getSymbolTable(), compileOptions)) in translateImpl()
905 if ((compileOptions & SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING) != 0) in translateImpl()
[all …]
DTranslatorHLSL.cpp38 ShCompileOptions compileOptions, in translate() argument
119 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in translate()
157 if ((compileOptions & SH_EXPAND_SELECT_HLSL_INTEGER_POW_EXPRESSIONS) != 0) in translate()
165 if ((compileOptions & SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH) != 0) in translate()
173 if (((compileOptions & SH_REWRITE_INTEGER_UNARY_MINUS_OPERATOR) != 0) && in translate()
203 (compileOptions & SH_ALLOW_TRANSLATE_UNIFORM_BLOCK_TO_STRUCTUREDBUFFER) != 0) in translate()
215 compileOptions, getComputeShaderLocalSize(), &getSymbolTable(), in translate()
DCompiler.h57 ShCompileOptions compileOptions);
104 ShCompileOptions compileOptions);
108 ShCompileOptions compileOptions);
146 bool shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const;
206 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument
210 ShCompileOptions compileOptions,
221 virtual bool shouldCollectVariables(ShCompileOptions compileOptions);
278 const ShCompileOptions compileOptions);
290 ShCompileOptions compileOptions);
DTranslatorGLSL.h22 ShCompileOptions compileOptions) override;
25 ShCompileOptions compileOptions,
28 bool shouldCollectVariables(ShCompileOptions compileOptions) override;
32 void writeExtensionBehavior(TIntermNode *root, ShCompileOptions compileOptions);
DTranslatorESSL.h22 ShCompileOptions compileOptions) override;
25 ShCompileOptions compileOptions,
30 void writeExtensionBehavior(ShCompileOptions compileOptions);
DTranslatorVulkan.h31 ShCompileOptions compileOptions,
39 ShCompileOptions compileOptions,
44 void writeExtensionBehavior(ShCompileOptions compileOptions, TInfoSinkBase &sink);
DTranslatorMetal.h31 SpecConstMetal(TSymbolTable *symbolTable, ShCompileOptions compileOptions, GLenum shaderType) in SpecConstMetal() argument
32 : SpecConst(symbolTable, compileOptions, shaderType) in SpecConstMetal()
46 ShCompileOptions compileOptions,
DTranslatorMetal.cpp117 ShCompileOptions compileOptions, in translate() argument
122 SpecConstMetal specConst(&getSymbolTable(), compileOptions, getShaderType()); in translate()
124 if (!TranslatorVulkan::translateImpl(sink, root, compileOptions, perfDiagnostics, &specConst, in translate()
163 (compileOptions & SH_INIT_OUTPUT_VARIABLES) == 0) in translate()
181 TOutputVulkanGLSL outputGLSL(this, sink, true, compileOptions); in translate()
DTranslatorMetalDirect.cpp286 ShCompileOptions compileOptions, in InsertFragCoordCorrection() argument
306 if ((compileOptions & SH_ADD_PRE_ROTATION) != 0) in InsertFragCoordCorrection()
652 ShCompileOptions compileOptions, in translateImpl() argument
710 if (!MonomorphizeUnsupportedFunctions(this, root, &getSymbolTable(), compileOptions)) in translateImpl()
744 if (compileOptions & SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING) in translateImpl()
929 if (!InsertFragCoordCorrection(this, compileOptions, root, GetMainSequence(root), in translateImpl()
939 if (!RewriteDfdy(this, compileOptions, root, getSymbolTable(), getShaderVersion(), in translateImpl()
1066 const bool needsExplicitBoolCasts = (compileOptions & SH_ADD_EXPLICIT_BOOL_CASTS) != 0; in translateImpl()
1077 if ((compileOptions & SH_REWRITE_ROW_MAJOR_MATRICES) != 0 && getShaderVersion() >= 300) in translateImpl()
1165 ShCompileOptions compileOptions, in translate() argument
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DShaderMtl.mm85 ShCompileOptions compileOptions)
90 compileOptions |= SH_VALIDATE_AST;
95 std::make_shared<TranslateTask>(compilerInstance->getHandle(), compileOptions, source);
125 ShCompileOptions compileOptions = SH_INITIALIZE_UNINITIALIZED_LOCALS;
129 compileOptions |= SH_INIT_OUTPUT_VARIABLES;
134 compileOptions |= SH_ADD_EXPLICIT_BOOL_CASTS;
137 compileOptions |= SH_CLAMP_POINT_SIZE;
139 compileOptions |= SH_CLAMP_FRAG_DEPTH;
144 compileOptions |= SH_REWRITE_ROW_MAJOR_MATRICES;
147 compileOptions |= SH_ADD_VULKAN_XFB_EMULATION_SUPPORT_CODE;
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
DRewriteInterpolateAtOffset.cpp29 ShCompileOptions compileOptions,
38 ShCompileOptions compileOptions,
52 ShCompileOptions compileOptions, in Traverser() argument
61 mUsePreRotation((compileOptions & SH_ADD_PRE_ROTATION) != 0) in Traverser()
66 ShCompileOptions compileOptions, in Apply() argument
74 Traverser traverser(pSymbolTable, compileOptions, shaderVersion, specConst, driverUniforms); in Apply()
146 ShCompileOptions compileOptions, in RewriteInterpolateAtOffset() argument
159 return Traverser::Apply(compiler, compileOptions, root, symbolTable, shaderVersion, specConst, in RewriteInterpolateAtOffset()
/third_party/skia/third_party/externals/angle2/samples/shader_translator/
Dshader_translator.cpp36 static bool CompileFile(char *fileName, ShHandle compiler, ShCompileOptions compileOptions);
82 ShCompileOptions compileOptions = 0; in main() local
108 compileOptions |= SH_INTERMEDIATE_TREE; in main()
111 compileOptions |= SH_OBJECT_CODE; in main()
114 compileOptions |= SH_VARIABLES; in main()
183 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main()
190 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main()
194 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main()
254 compileOptions |= SH_INITIALIZE_BUILTINS_FOR_INSTANCED_MULTIVIEW; in main()
255 compileOptions |= SH_SELECT_VIEW_IN_NV_GLSL_VERTEX_SHADER; in main()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteDfdy.cpp29 ShCompileOptions compileOptions,
37 ShCompileOptions compileOptions,
51 ShCompileOptions compileOptions, in Traverser() argument
57 mUsePreRotation((compileOptions & SH_ADD_PRE_ROTATION) != 0) in Traverser()
62 ShCompileOptions compileOptions, in Apply() argument
69 Traverser traverser(pSymbolTable, compileOptions, specConst, driverUniforms); in Apply()
219 ShCompileOptions compileOptions, in RewriteDfdy() argument
230 return Traverser::Apply(compiler, compileOptions, root, symbolTable, specConst, driverUniforms); in RewriteDfdy()
DMonomorphizeUnsupportedFunctions.cpp245 ShCompileOptions compileOptions, in MonomorphizeTraverser() argument
249 mCompileOptions(compileOptions), in MonomorphizeTraverser()
509 ShCompileOptions compileOptions) in MonomorphizeUnsupportedFunctionsImpl() argument
521 MonomorphizeTraverser monomorphizer(compiler, symbolTable, compileOptions, &functionMap); in MonomorphizeUnsupportedFunctionsImpl()
550 ShCompileOptions compileOptions) in MonomorphizeUnsupportedFunctions() argument
556 bool result = MonomorphizeUnsupportedFunctionsImpl(compiler, root, symbolTable, compileOptions); in MonomorphizeUnsupportedFunctions()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
Dcompiler_test.cpp68 ShCompileOptions compileOptions, in compileTestShader() argument
82 translator->compile(shaderStrings, 1, SH_OBJECT_CODE | compileOptions); in compileTestShader()
100 ShCompileOptions compileOptions, in compileTestShader() argument
107 return compileTestShader(type, spec, output, shaderString, &resources, compileOptions, in compileTestShader()
137 const ShCompileOptions compileOptions) in compile() argument
143 compileWithSettings(code.first, shaderString, compileOptions, &code.second, &infoLog); in compile()
153 const ShCompileOptions compileOptions, in compileWithSettings() argument
158 compileOptions, translatedCode, infoLog); in compileWithSettings()
Dcompiler_test.h31 ShCompileOptions compileOptions,
39 ShCompileOptions compileOptions,
56 void compile(const std::string &shaderString, const ShCompileOptions compileOptions);
97 ShCompileOptions compileOptions,
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DCompiler.cpp104 int compileOptions) in compile() argument
115 if (compileOptions & SH_SOURCE_PATH) in compile()
123 shaderType, compileOptions, true, in compile()
147 if (success && (compileOptions & SH_VALIDATE_LOOP_INDEXING)) in compile()
150 if (success && (compileOptions & SH_INTERMEDIATE_TREE)) in compile()
153 if (success && (compileOptions & SH_OBJECT_CODE)) in compile()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
DShaderImpl.cpp86 ShCompileOptions compileOptions) in compileImpl() argument
89 compileOptions |= SH_VALIDATE_AST; in compileImpl()
94 std::make_shared<TranslateTask>(compilerInstance->getHandle(), compileOptions, source); in compileImpl()
/third_party/skia/third_party/externals/tint/tools/src/cmd/remote-compile/
Dmsl_metal.mm41 MTLCompileOptions* compileOptions = [MTLCompileOptions new];
42 compileOptions.languageVersion = MTLLanguageVersion1_2;
45 options:compileOptions
/third_party/skia/third_party/externals/tint/src/val/
Dmsl_metal.mm43 MTLCompileOptions* compileOptions = [MTLCompileOptions new];
44 compileOptions.languageVersion = MTLLanguageVersion1_2;
47 options:compileOptions

123