/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
D | ExpressionLimit_test.cpp | 225 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/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
D | ExpressionLimit_test.cpp | 225 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/ |
D | ShaderVk.cpp | 28 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/flutter/skia/third_party/externals/angle2/src/compiler/translator/ |
D | Compiler.cpp | 122 ShCompileOptions compileOptions) in RemoveInvariant() argument 127 if ((compileOptions & SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3) != 0 && in RemoveInvariant() 306 bool TCompiler::shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const in shouldRunLoopAndIndexingValidation() 312 (compileOptions & SH_VALIDATE_LOOP_INDEXING); in shouldRunLoopAndIndexingValidation() 333 ShCompileOptions compileOptions) in compileTreeForTesting() argument 335 return compileTreeImpl(shaderStrings, numStrings, compileOptions); in compileTreeForTesting() 340 const ShCompileOptions compileOptions) in compileTreeImpl() argument 352 const bool glDrawIDSupported = (compileOptions & SH_EMULATE_GL_DRAW_ID) != 0u; in compileTreeImpl() 363 (compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0u; in compileTreeImpl() 375 if (compileOptions & SH_SOURCE_PATH) in compileTreeImpl() [all …]
|
D | TranslatorGLSL.cpp | 26 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument 28 if (compileOptions & SH_EMULATE_ABS_INT_FUNCTION) in initBuiltInFunctionEmulator() 33 if (compileOptions & SH_EMULATE_ISNAN_FLOAT_FUNCTION) in initBuiltInFunctionEmulator() 38 if (compileOptions & SH_EMULATE_ATAN2_FLOAT_FUNCTION) in initBuiltInFunctionEmulator() 48 ShCompileOptions compileOptions, in translate() argument 57 writeExtensionBehavior(root, compileOptions); in translate() 61 writePragma(compileOptions); 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 …]
|
D | TranslatorESSL.cpp | 23 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument 25 if (compileOptions & SH_EMULATE_ATAN2_FLOAT_FUNCTION) in initBuiltInFunctionEmulator() 32 ShCompileOptions compileOptions, in translate() argument 44 writeExtensionBehavior(compileOptions); in translate() 48 writePragma(compileOptions); in translate() 102 compileOptions); in translate() 121 void TranslatorESSL::writeExtensionBehavior(ShCompileOptions compileOptions) in writeExtensionBehavior() argument 145 EmitMultiviewGLSL(*this, compileOptions, iter->second, sink); in writeExtensionBehavior() 166 ASSERT((compileOptions & SH_EMULATE_GL_DRAW_ID) != 0); in writeExtensionBehavior() 172 ASSERT((compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0); in writeExtensionBehavior()
|
D | Compiler.h | 52 ShCompileOptions compileOptions); 91 ShCompileOptions compileOptions); 95 ShCompileOptions compileOptions); 128 bool shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const; 149 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument 153 ShCompileOptions compileOptions, 159 void writePragma(ShCompileOptions compileOptions); 168 virtual bool shouldCollectVariables(ShCompileOptions compileOptions); 220 const ShCompileOptions compileOptions); 232 ShCompileOptions compileOptions);
|
D | TranslatorGLSL.h | 22 ShCompileOptions compileOptions) override; 25 ShCompileOptions compileOptions, 28 bool shouldCollectVariables(ShCompileOptions compileOptions) override; 32 void writeExtensionBehavior(TIntermNode *root, ShCompileOptions compileOptions);
|
D | TranslatorHLSL.cpp | 40 ShCompileOptions compileOptions, in translate() argument 79 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in translate() 116 if ((compileOptions & SH_EXPAND_SELECT_HLSL_INTEGER_POW_EXPRESSIONS) != 0) in translate() 121 if ((compileOptions & SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH) != 0) in translate() 126 if (((compileOptions & SH_REWRITE_INTEGER_UNARY_MINUS_OPERATOR) != 0) && in translate() 143 compileOptions, getComputeShaderLocalSize(), &getSymbolTable(), in translate()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | TranslatorGLSL.cpp | 26 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 …]
|
D | Compiler.cpp | 161 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 …]
|
D | TranslatorESSL.cpp | 22 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()
|
D | TranslatorHLSL.cpp | 38 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()
|
D | TranslatorGLSL.h | 22 ShCompileOptions compileOptions) override; 25 ShCompileOptions compileOptions, 28 bool shouldCollectVariables(ShCompileOptions compileOptions) override; 32 void writeExtensionBehavior(TIntermNode *root, ShCompileOptions compileOptions);
|
D | TranslatorVulkan.cpp | 616 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 …]
|
D | Compiler.h | 57 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);
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | ShaderVk.cpp | 28 ShCompileOptions compileOptions = SH_INITIALIZE_UNINITIALIZED_LOCALS; in compile() local 35 compileOptions |= SH_INIT_OUTPUT_VARIABLES; in compile() 40 compileOptions |= SH_CLAMP_POINT_SIZE; in compile() 48 compileOptions |= SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING_WITH_SUBGROUP_OP; in compile() 52 compileOptions |= SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING; in compile() 56 return compileImpl(context, compilerInstance, mData.getSource(), compileOptions | options); in compile()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | ShaderMtl.mm | 85 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/ |
D | RewriteInterpolateAtOffset.cpp | 29 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/ |
D | shader_translator.cpp | 36 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/flutter/skia/third_party/externals/angle2/samples/shader_translator/ |
D | shader_translator.cpp | 31 static bool CompileFile(char *fileName, ShHandle compiler, ShCompileOptions compileOptions); 74 ShCompileOptions compileOptions = 0; in main() local 97 compileOptions |= SH_INTERMEDIATE_TREE; in main() 100 compileOptions |= SH_OBJECT_CODE; in main() 103 compileOptions |= SH_VARIABLES; in main() 165 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main() 172 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main() 232 compileOptions |= SH_INITIALIZE_BUILTINS_FOR_INSTANCED_MULTIVIEW; in main() 233 compileOptions |= SH_SELECT_VIEW_IN_NV_GLSL_VERTEX_SHADER; in main() 302 compileOptions &= ~SH_SELECT_VIEW_IN_NV_GLSL_VERTEX_SHADER; in main() [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
D | RewriteDfdy.cpp | 29 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()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | compiler_test.cpp | 72 ShCompileOptions compileOptions, in compileTestShader() argument 86 translator->compile(shaderStrings, 1, SH_OBJECT_CODE | compileOptions); in compileTestShader() 100 ShCompileOptions compileOptions, in compileTestShader() argument 106 return compileTestShader(type, spec, output, shaderString, &resources, compileOptions, in compileTestShader() 135 const ShCompileOptions compileOptions) in compile() argument 141 compileWithSettings(code.first, shaderString, compileOptions, &code.second, &infoLog); in compile() 151 const ShCompileOptions compileOptions, in compileWithSettings() argument 156 compileOptions, translatedCode, infoLog); in compileWithSettings()
|
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | compiler_test.cpp | 68 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()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | Compiler.cpp | 104 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()
|