Home
last modified time | relevance | path

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

12

/device/generic/vulkan-cereal/third-party/angle/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 …]
/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/
DCompiler.cpp124 ShCompileOptions compileOptions) in RemoveInvariant() argument
129 if ((compileOptions & SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3) != 0 && in RemoveInvariant()
309 bool TCompiler::shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const in shouldRunLoopAndIndexingValidation()
315 (compileOptions & SH_VALIDATE_LOOP_INDEXING); in shouldRunLoopAndIndexingValidation()
336 ShCompileOptions compileOptions) in compileTreeForTesting() argument
338 return compileTreeImpl(shaderStrings, numStrings, compileOptions); in compileTreeForTesting()
343 const ShCompileOptions compileOptions) in compileTreeImpl() argument
346 mCompileOptions = compileOptions; in compileTreeImpl()
354 ResetExtensionBehavior(mResources, mExtensionBehavior, compileOptions); in compileTreeImpl()
358 const bool glDrawIDSupported = (compileOptions & SH_EMULATE_GL_DRAW_ID) != 0u; in compileTreeImpl()
[all …]
DTranslatorGLSL.cpp26 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 …]
DTranslatorESSL.cpp22 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument
24 if (compileOptions & SH_EMULATE_ATAN2_FLOAT_FUNCTION) in initBuiltInFunctionEmulator()
31 ShCompileOptions compileOptions, in translate() argument
43 writeExtensionBehavior(compileOptions); in translate()
47 writePragma(compileOptions); in translate()
102 compileOptions); in translate()
123 void TranslatorESSL::writeExtensionBehavior(ShCompileOptions compileOptions) in writeExtensionBehavior() argument
151 EmitMultiviewGLSL(*this, compileOptions, iter->first, iter->second, sink); in writeExtensionBehavior()
173 ASSERT((compileOptions & SH_EMULATE_GL_DRAW_ID) != 0); in writeExtensionBehavior()
179 ASSERT((compileOptions & SH_EMULATE_GL_BASE_VERTEX_BASE_INSTANCE) != 0); in writeExtensionBehavior()
DCompiler.h52 ShCompileOptions compileOptions);
91 ShCompileOptions compileOptions);
95 ShCompileOptions compileOptions);
131 bool shouldRunLoopAndIndexingValidation(ShCompileOptions compileOptions) const;
157 ShCompileOptions compileOptions) in initBuiltInFunctionEmulator() argument
161 ShCompileOptions compileOptions,
167 void writePragma(ShCompileOptions compileOptions);
176 virtual bool shouldCollectVariables(ShCompileOptions compileOptions);
235 const ShCompileOptions compileOptions);
247 ShCompileOptions compileOptions);
DTranslatorHLSL.cpp39 ShCompileOptions compileOptions, in translate() argument
104 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in translate()
146 if ((compileOptions & SH_EXPAND_SELECT_HLSL_INTEGER_POW_EXPRESSIONS) != 0) in translate()
154 if ((compileOptions & SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH) != 0) in translate()
162 if (((compileOptions & SH_REWRITE_INTEGER_UNARY_MINUS_OPERATOR) != 0) && in translate()
189 compileOptions, getComputeShaderLocalSize(), &getSymbolTable(), in translate()
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);
DTranslatorMetal.cpp66 ShCompileOptions compileOptions, in translate() argument
73 getShaderVersion(), getOutputType(), false, true, compileOptions); in translate()
76 if (!TranslatorVulkan::translateImpl(root, compileOptions, perfDiagnostics, &driverUniforms, in translate()
DTranslatorVulkan.cpp745 ShCompileOptions compileOptions, in translateImpl() argument
754 if (!ShaderBuiltinsWorkaround(this, root, &getSymbolTable(), compileOptions)) in translateImpl()
808 if (compileOptions & SH_USE_OLD_REWRITE_STRUCT_SAMPLERS) in translateImpl()
836 if (compileOptions & SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING) in translateImpl()
902 if (compileOptions & SH_ADD_BRESENHAM_LINE_RASTER_EMULATION) in translateImpl()
938 if (compileOptions & SH_ADD_BRESENHAM_LINE_RASTER_EMULATION) in translateImpl()
1011 if (compileOptions & SH_ADD_BRESENHAM_LINE_RASTER_EMULATION) in translateImpl()
1085 ShCompileOptions compileOptions, in translate() argument
1095 bool enablePrecision = ((compileOptions & SH_IGNORE_PRECISION_QUALIFIERS) == 0); in translate()
1100 enablePrecision, compileOptions); in translate()
[all …]
DTranslatorVulkan.h29 ShCompileOptions compileOptions,
39 ShCompileOptions compileOptions,
DOutputESSL.cpp20 ShCompileOptions compileOptions) in TOutputESSL() argument
29 compileOptions), in TOutputESSL()
DTranslatorHLSL.h35 ShCompileOptions compileOptions,
40 bool shouldCollectVariables(ShCompileOptions compileOptions) override { return true; } in shouldCollectVariables() argument
DOutputGLSL.cpp22 ShCompileOptions compileOptions) in TOutputGLSL() argument
31 compileOptions) in TOutputGLSL()
DBuiltinsWorkaroundGLSL.cpp100 ShCompileOptions compileOptions) in ShaderBuiltinsWorkaround() argument
102 TBuiltinsWorkaroundGLSL builtins(symbolTable, compileOptions); in ShaderBuiltinsWorkaround()
DInitialize.cpp132 const ShCompileOptions compileOptions) in ResetExtensionBehavior() argument
140 if (compileOptions & SH_DISABLE_ARB_TEXTURE_RECTANGLE) in ResetExtensionBehavior()
DOutputVulkanGLSL.cpp32 ShCompileOptions compileOptions) in TOutputVulkanGLSL() argument
41 compileOptions), in TOutputVulkanGLSL()
DOutputVulkanGLSLForMetal.mm65 ShCompileOptions compileOptions)
76 compileOptions)
/device/generic/vulkan-cereal/third-party/angle/src/libANGLE/renderer/vulkan/
DShaderVk.cpp28 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()
45 compileOptions |= SH_ADD_BRESENHAM_LINE_RASTER_EMULATION; in compile()
50 compileOptions |= SH_EMULATE_SEAMFUL_CUBE_MAP_SAMPLING; in compile()
55 compileOptions |= SH_USE_OLD_REWRITE_STRUCT_SAMPLERS; in compile()
60 compileOptions |= SH_IGNORE_PRECISION_QUALIFIERS; in compile()
65 compileOptions |= SH_EARLY_FRAGMENT_TESTS_OPTIMIZATION; in compile()
67 return compileImpl(context, compilerInstance, mData.getSource(), compileOptions | options); in compile()
/device/generic/vulkan-cereal/third-party/angle/samples/shader_translator/
Dshader_translator.cpp31 static bool CompileFile(char *fileName, ShHandle compiler, ShCompileOptions compileOptions);
75 ShCompileOptions compileOptions = 0; in main() local
98 compileOptions |= SH_INTERMEDIATE_TREE; in main()
101 compileOptions |= SH_OBJECT_CODE; in main()
104 compileOptions |= SH_VARIABLES; in main()
176 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main()
183 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main()
187 compileOptions |= SH_INITIALIZE_UNINITIALIZED_LOCALS; in main()
247 compileOptions |= SH_INITIALIZE_BUILTINS_FOR_INSTANCED_MULTIVIEW; in main()
248 compileOptions |= SH_SELECT_VIEW_IN_NV_GLSL_VERTEX_SHADER; in main()
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/tests/test_utils/
Dcompiler_test.cpp72 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()
Dcompiler_test.h31 ShCompileOptions compileOptions,
39 ShCompileOptions compileOptions,
56 void compile(const std::string &shaderString, const ShCompileOptions compileOptions);
97 ShCompileOptions compileOptions,
/device/generic/vulkan-cereal/third-party/angle/src/libANGLE/renderer/metal/
DShaderMtl.mm27 ShCompileOptions compileOptions = SH_INITIALIZE_UNINITIALIZED_LOCALS;
32 compileOptions |= SH_INIT_OUTPUT_VARIABLES;
35 compileOptions |= SH_CLAMP_POINT_SIZE;
37 return compileImpl(context, compilerInstance, mData.getSource(), compileOptions | options);
/device/generic/vulkan-cereal/third-party/angle/src/libANGLE/renderer/
DShaderImpl.cpp84 ShCompileOptions compileOptions) in compileImpl() argument
87 compileOptions |= SH_VALIDATE_AST; in compileImpl()
92 std::make_shared<TranslateTask>(compilerInstance->getHandle(), compileOptions, source); in compileImpl()
/device/generic/vulkan-cereal/third-party/angle/src/tests/perf_tests/
DCompilerPerf.cpp307 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()

12