Lines Matching refs:compileOptions
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()
385 (compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0; in compileTreeImpl()
397 if ((compileOptions & SH_SOURCE_PATH) != 0) in compileTreeImpl()
404 compileOptions, !IsDesktopGLSpec(mShaderSpec), &mDiagnostics, in compileTreeImpl()
434 if (!checkAndSimplifyAST(root, parseContext, compileOptions)) in compileTreeImpl()
576 ShCompileOptions compileOptions) in checkAndSimplifyAST() argument
585 if ((compileOptions & SH_LIMIT_EXPRESSION_COMPLEXITY) != 0 && !limitExpressionComplexity(root)) in checkAndSimplifyAST()
590 if (shouldRunLoopAndIndexingValidation(compileOptions) && in checkAndSimplifyAST()
635 bool initializeLocalsAndGlobals = (compileOptions & SH_INITIALIZE_UNINITIALIZED_LOCALS) != 0 && in checkAndSimplifyAST()
638 (compileOptions & SH_DONT_USE_LOOPS_TO_INITIALIZE_VARIABLES) == 0; in checkAndSimplifyAST()
656 if ((compileOptions & SH_LIMIT_CALL_STACK_DEPTH) != 0 && !checkCallDepth()) in checkAndSimplifyAST()
707 if ((compileOptions & SH_CLAMP_INDIRECT_ARRAY_BOUNDS) != 0) in checkAndSimplifyAST()
715 if ((compileOptions & SH_INITIALIZE_BUILTINS_FOR_INSTANCED_MULTIVIEW) != 0 && in checkAndSimplifyAST()
721 this, root, mNumViews, mShaderType, compileOptions, mOutputType, &mSymbolTable)) in checkAndSimplifyAST()
728 if ((compileOptions & SH_REWRITE_DO_WHILE_LOOPS) != 0) in checkAndSimplifyAST()
736 if ((compileOptions & SH_ADD_AND_TRUE_TO_LOOP_CONDITION) != 0) in checkAndSimplifyAST()
744 if ((compileOptions & SH_UNFOLD_SHORT_CIRCUIT) != 0) in checkAndSimplifyAST()
752 if ((compileOptions & SH_REGENERATE_STRUCT_NAMES) != 0) in checkAndSimplifyAST()
763 if ((compileOptions & SH_EMULATE_GL_DRAW_ID) != 0) in checkAndSimplifyAST()
766 shouldCollectVariables(compileOptions))) in checkAndSimplifyAST()
776 if ((compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0) in checkAndSimplifyAST()
779 this, root, &mSymbolTable, &mUniforms, shouldCollectVariables(compileOptions), in checkAndSimplifyAST()
780 (compileOptions & SH_ADD_BASE_VERTEX_TO_VERTEX_ID) != 0)) in checkAndSimplifyAST()
798 int simplifyScalarized = (compileOptions & SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS) != 0 in checkAndSimplifyAST()
853 initBuiltInFunctionEmulator(&mBuiltInFunctionEmulator, compileOptions); in checkAndSimplifyAST()
857 if ((compileOptions & SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS) != 0) in checkAndSimplifyAST()
866 if ((compileOptions & SH_FORCE_SHADER_PRECISION_HIGHP_TO_MEDIUMP) != 0) in checkAndSimplifyAST()
874 if (shouldCollectVariables(compileOptions)) in checkAndSimplifyAST()
883 if ((compileOptions & SH_USE_UNUSED_STANDARD_SHARED_BLOCKS) != 0) in checkAndSimplifyAST()
890 if ((compileOptions & SH_ENFORCE_PACKING_RESTRICTIONS) != 0) in checkAndSimplifyAST()
902 (compileOptions & SH_INIT_OUTPUT_VARIABLES) != 0 && mShaderType != GL_COMPUTE_SHADER; in checkAndSimplifyAST()
904 (compileOptions & SH_INIT_FRAGMENT_OUTPUT_VARIABLES) != 0 && in checkAndSimplifyAST()
917 if (RemoveInvariant(mShaderType, mShaderVersion, mOutputType, compileOptions)) in checkAndSimplifyAST()
929 ((compileOptions & SH_INIT_GL_POSITION) != 0 || in checkAndSimplifyAST()
963 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in checkAndSimplifyAST()
981 if (getShaderType() == GL_VERTEX_SHADER && (compileOptions & SH_CLAMP_POINT_SIZE) != 0) in checkAndSimplifyAST()
989 if (getShaderType() == GL_FRAGMENT_SHADER && (compileOptions & SH_CLAMP_FRAG_DEPTH) != 0) in checkAndSimplifyAST()
997 if ((compileOptions & SH_REWRITE_REPEATED_ASSIGN_TO_SWIZZLED) != 0) in checkAndSimplifyAST()
1005 if ((compileOptions & SH_REWRITE_VECTOR_SCALAR_ARITHMETIC) != 0) in checkAndSimplifyAST()
1013 if ((compileOptions & SH_REMOVE_DYNAMIC_INDEXING_OF_SWIZZLED_VECTOR) != 0) in checkAndSimplifyAST()
1022 if ((compileOptions & SH_EARLY_FRAGMENT_TESTS_OPTIMIZATION) != 0) in checkAndSimplifyAST()
1046 ShCompileOptions compileOptions = compileOptionsIn; in compile() local
1052 compileOptions |= SH_FLATTEN_PRAGMA_STDGL_INVARIANT_ALL; in compile()
1056 TIntermBlock *root = compileTreeImpl(shaderStrings, numStrings, compileOptions); in compile()
1060 if ((compileOptions & SH_INTERMEDIATE_TREE) != 0) in compile()
1065 if ((compileOptions & SH_OBJECT_CODE) != 0) in compile()
1068 if (!translate(root, compileOptions, &perfDiagnostics)) in compile()
1078 (compileOptions & SH_EMULATE_GL_DRAW_ID) != 0; in compile()
1082 (compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0; in compile()
1506 bool TCompiler::shouldCollectVariables(ShCompileOptions compileOptions) in shouldCollectVariables() argument
1508 return (compileOptions & SH_VARIABLES) != 0; in shouldCollectVariables()