/external/angle/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 …]
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | ShaderVk.cpp | 28 ShCompileOptions compileOptions = 0; in compile() local 38 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in compile() 42 compileOptions |= SH_CLAMP_INDIRECT_ARRAY_BOUNDS; in compile() 46 compileOptions |= SH_INIT_OUTPUT_VARIABLES; in compile() 52 compileOptions |= SH_CLAMP_POINT_SIZE; in compile() 57 compileOptions |= SH_ADD_BRESENHAM_LINE_RASTER_EMULATION; in compile() 62 compileOptions |= SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING; in compile() 67 compileOptions |= SH_IGNORE_PRECISION_QUALIFIERS; in compile() 72 compileOptions |= SH_FORCE_SHADER_PRECISION_HIGHP_TO_MEDIUMP; in compile() 77 compileOptions |= SH_EARLY_FRAGMENT_TESTS_OPTIMIZATION; in compile() [all …]
|
/external/angle/src/compiler/translator/ |
D | Compiler.cpp | 127 ShCompileOptions compileOptions) in RemoveInvariant() argument 132 if ((compileOptions & SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3) != 0 && in RemoveInvariant() 319 bool TCompiler::shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const in shouldRunLoopAndIndexingValidation() 325 (compileOptions & SH_VALIDATE_LOOP_INDEXING) != 0; in shouldRunLoopAndIndexingValidation() 352 ShCompileOptions compileOptions) in compileTreeForTesting() argument 354 return compileTreeImpl(shaderStrings, numStrings, compileOptions); in compileTreeForTesting() 359 const ShCompileOptions compileOptions) in compileTreeImpl() argument 362 mCompileOptions = compileOptions; in compileTreeImpl() 370 ResetExtensionBehavior(mResources, mExtensionBehavior, compileOptions); in compileTreeImpl() 374 const bool glDrawIDSupported = (compileOptions & SH_EMULATE_GL_DRAW_ID) != 0; in compileTreeImpl() [all …]
|
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 | 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() 98 getShaderType(), shaderVer, precisionEmulation, compileOptions); in translate() 119 void TranslatorESSL::writeExtensionBehavior(ShCompileOptions compileOptions) in writeExtensionBehavior() argument 147 EmitMultiviewGLSL(*this, compileOptions, iter->first, iter->second, sink); in writeExtensionBehavior() 170 ASSERT((compileOptions & SH_EMULATE_GL_DRAW_ID) != 0); in writeExtensionBehavior() 176 ASSERT((compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0); in writeExtensionBehavior()
|
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 | 38 ShCompileOptions compileOptions, in translate() argument 103 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in translate() 145 if ((compileOptions & SH_EXPAND_SELECT_HLSL_INTEGER_POW_EXPRESSIONS) != 0) in translate() 153 if ((compileOptions & SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH) != 0) in translate() 161 if (((compileOptions & SH_REWRITE_INTEGER_UNARY_MINUS_OPERATOR) != 0) && in translate() 191 (compileOptions & SH_ALLOW_TRANSLATE_UNIFORM_BLOCK_TO_STRUCTUREDBUFFER) != 0) in translate() 203 compileOptions, getComputeShaderLocalSize(), &getSymbolTable(), in translate()
|
D | TranslatorVulkan.cpp | 584 ShCompileOptions compileOptions, in InsertFragCoordCorrection() argument 604 if ((compileOptions & SH_ADD_PRE_ROTATION) != 0) in InsertFragCoordCorrection() 651 ShCompileOptions compileOptions, in AddBresenhamEmulationFS() argument 756 if (!InsertFragCoordCorrection(compiler, compileOptions, root, emulationSequence, in AddBresenhamEmulationFS() 773 ShCompileOptions compileOptions, in translateImpl() argument 780 if (!ShaderBuiltinsWorkaround(this, root, &getSymbolTable(), compileOptions)) in translateImpl() 787 writeExtensionBehavior(compileOptions, sink); in translateImpl() 788 WritePragma(sink, compileOptions, getPragma()); in translateImpl() 841 compileOptions)) in translateImpl() 873 if ((compileOptions & SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING) != 0) in translateImpl() [all …]
|
D | Compiler.h | 57 ShCompileOptions compileOptions); 99 ShCompileOptions compileOptions); 103 ShCompileOptions compileOptions); 139 bool shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const; 187 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument 191 ShCompileOptions compileOptions, 202 virtual bool shouldCollectVariables(ShCompileOptions compileOptions); 266 const ShCompileOptions compileOptions); 278 ShCompileOptions compileOptions);
|
D | TranslatorESSL.h | 22 ShCompileOptions compileOptions) override; 25 ShCompileOptions compileOptions, 30 void writeExtensionBehavior(ShCompileOptions compileOptions);
|
D | TranslatorVulkan.h | 31 ShCompileOptions compileOptions, 39 ShCompileOptions compileOptions, 44 void writeExtensionBehavior(ShCompileOptions compileOptions, TInfoSinkBase &sink);
|
D | TranslatorMetal.h | 30 SpecConstMetal(TSymbolTable *symbolTable, ShCompileOptions compileOptions, GLenum shaderType) in SpecConstMetal() argument 31 : SpecConst(symbolTable, compileOptions, shaderType) in SpecConstMetal() 61 ShCompileOptions compileOptions,
|
D | OutputESSL.cpp | 19 ShCompileOptions compileOptions) in TOutputESSL() argument 27 compileOptions), in TOutputESSL()
|
D | TranslatorMetalDirect.cpp | 316 ShCompileOptions compileOptions, in InsertFragCoordCorrection() argument 336 if ((compileOptions & SH_ADD_PRE_ROTATION) != 0) in InsertFragCoordCorrection() 711 ShCompileOptions compileOptions, in translateImpl() argument 777 if (compileOptions & SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING) in translateImpl() 942 bool usePreRotation = compileOptions & SH_ADD_PRE_ROTATION; in translateImpl() 972 if (!InsertFragCoordCorrection(this, compileOptions, root, GetMainSequence(root), in translateImpl() 980 if (!RewriteDfdy(this, compileOptions, root, getSymbolTable(), getShaderVersion(), in translateImpl() 1034 if ((compileOptions & SH_ADD_PRE_ROTATION) != 0 && in translateImpl() 1178 ShCompileOptions compileOptions, in translate() argument 1188 if ((compileOptions & SH_REWRITE_ROW_MAJOR_MATRICES) != 0 && getShaderVersion() >= 300) in translate() [all …]
|
D | TranslatorMetal.cpp | 179 ShCompileOptions compileOptions, in translate() argument 184 SpecConstMetal specConst(&getSymbolTable(), compileOptions, getShaderType()); in translate() 186 if (!TranslatorVulkan::translateImpl(sink, root, compileOptions, perfDiagnostics, &specConst, in translate() 225 (compileOptions & SH_INIT_OUTPUT_VARIABLES) == 0) in translate() 245 compileOptions); in translate()
|
D | OutputGLSL.cpp | 21 ShCompileOptions compileOptions) in TOutputGLSL() argument 29 compileOptions) in TOutputGLSL()
|
/external/angle/src/compiler/translator/tree_ops/vulkan/ |
D | RewriteInterpolateAtOffset.cpp | 30 ShCompileOptions compileOptions, 39 ShCompileOptions compileOptions, 53 ShCompileOptions compileOptions, in Traverser() argument 62 mUsePreRotation((compileOptions & SH_ADD_PRE_ROTATION) != 0) in Traverser() 67 ShCompileOptions compileOptions, in Apply() argument 75 Traverser traverser(pSymbolTable, compileOptions, shaderVersion, specConst, driverUniforms); in Apply() 142 ShCompileOptions compileOptions, in RewriteInterpolateAtOffset() argument 155 return Traverser::Apply(compiler, compileOptions, root, symbolTable, shaderVersion, specConst, in RewriteInterpolateAtOffset()
|
/external/angle/src/libANGLE/renderer/metal/ |
D | ShaderMtl.mm | 85 ShCompileOptions compileOptions) 88 compileOptions |= SH_VALIDATE_AST; 93 std::make_shared<TranslateTask>(compilerInstance->getHandle(), compileOptions, source); 123 ShCompileOptions compileOptions = SH_INITIALIZE_UNINITIALIZED_LOCALS; 128 compileOptions |= SH_INIT_OUTPUT_VARIABLES; 131 compileOptions |= SH_CLAMP_POINT_SIZE; 133 compileOptions |= SH_CLAMP_FRAG_DEPTH; 138 compileOptions |= SH_REWRITE_ROW_MAJOR_MATRICES; 141 compileOptions |= SH_ADD_VULKAN_XFB_EMULATION_SUPPORT_CODE; 144 compileOptions | options);
|
/external/angle/src/compiler/translator/tree_ops/ |
D | RewriteDfdy.cpp | 30 ShCompileOptions compileOptions, 38 ShCompileOptions compileOptions, 52 ShCompileOptions compileOptions, in Traverser() argument 58 mUsePreRotation((compileOptions & SH_ADD_PRE_ROTATION) != 0) in Traverser() 63 ShCompileOptions compileOptions, in Apply() argument 70 Traverser traverser(pSymbolTable, compileOptions, specConst, driverUniforms); in Apply() 220 ShCompileOptions compileOptions, in RewriteDfdy() argument 231 return Traverser::Apply(compiler, compileOptions, root, symbolTable, specConst, driverUniforms); in RewriteDfdy()
|
/external/angle/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() 186 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main() 193 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main() 197 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main() 257 compileOptions |= SH_INITIALIZE_BUILTINS_FOR_INSTANCED_MULTIVIEW; in main() 258 compileOptions |= SH_SELECT_VIEW_IN_NV_GLSL_VERTEX_SHADER; in main() [all …]
|
/external/angle/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 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()
|
D | compiler_test.h | 31 ShCompileOptions compileOptions, 39 ShCompileOptions compileOptions, 56 void compile(const std::string &shaderString, const ShCompileOptions compileOptions); 97 ShCompileOptions compileOptions,
|
/external/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()
|
/external/angle/src/libANGLE/renderer/ |
D | ShaderImpl.cpp | 86 ShCompileOptions compileOptions) in compileImpl() argument 89 compileOptions |= SH_VALIDATE_AST; in compileImpl() 94 std::make_shared<TranslateTask>(compilerInstance->getHandle(), compileOptions, source); in compileImpl()
|
/external/angle/src/tests/perf_tests/ |
D | CompilerPerf.cpp | 307 ShCompileOptions compileOptions = SH_OBJECT_CODE | SH_VARIABLES | in step() local 312 if (!mTranslator->compile(shaderStrings, 1, compileOptions)) in step() 321 mTranslator->compile(shaderStrings, 1, compileOptions); in step()
|