/external/angle/src/tests/compiler_tests/ |
D | ExpressionLimit_test.cpp | 213 const ShCompileOptions &compileOptions, in CheckShaderCompilation() argument 216 bool success = sh::Compile(compiler, &source, 1, compileOptions) != 0; in CheckShaderCompilation() 248 ShCompileOptions compileOptions = {}; in TEST_F() local 249 compileOptions.limitExpressionComplexity = true; in TEST_F() 254 compileOptions, nullptr)); in TEST_F() 258 compileOptions, kExpressionTooComplex)); in TEST_F() 260 compileOptions.limitExpressionComplexity = false; in TEST_F() 263 compileOptions, nullptr)); in TEST_F() 272 ShCompileOptions compileOptions = {}; in TEST_F() local 273 compileOptions.limitExpressionComplexity = true; in TEST_F() [all …]
|
D | EmulateGLBaseVertexBaseInstance_test.cpp | 33 ShCompileOptions *compileOptions = nullptr) in CheckCompileFailure() argument 36 if (compileOptions != nullptr) in CheckCompileFailure() 38 options = *compileOptions; in CheckCompileFailure() 77 ShCompileOptions compileOptions = {}; in TEST_F() local 78 compileOptions.objectCode = true; in TEST_F() 79 compileOptions.emulateGLBaseVertexBaseInstance = true; in TEST_F() 81 compile(shaderString, compileOptions); in TEST_F() 94 ShCompileOptions compileOptions = {}; in TEST_F() local 95 compileOptions.objectCode = true; in TEST_F() 96 compileOptions.emulateGLBaseVertexBaseInstance = true; in TEST_F() [all …]
|
D | EmulateGLDrawID_test.cpp | 32 ShCompileOptions compileOptions = {}; in CheckCompileFailure() local 38 compileOptions, &translatedCode, &infoLog); in CheckCompileFailure() 68 ShCompileOptions compileOptions = {}; in TEST_F() local 69 compileOptions.objectCode = true; in TEST_F() 70 compileOptions.emulateGLDrawID = true; in TEST_F() 72 compile(shaderString, compileOptions); in TEST_F() 73 compile("#version 100\n" + shaderString, compileOptions); in TEST_F() 74 compile("#version 300 es\n" + shaderString, compileOptions); in TEST_F() 96 ShCompileOptions compileOptions = {}; in TEST_F() local 97 compileOptions.objectCode = true; in TEST_F() [all …]
|
D | APPLE_clip_distance_test.cpp | 92 ShCompileOptions compileOptions = {}; in TestShaderCompile() local 93 compileOptions.objectCode = true; in TestShaderCompile() 95 bool success = sh::Compile(mCompiler, shaderStrings, 3, compileOptions); in TestShaderCompile() 162 ShCompileOptions compileOptions = {}; in TEST_P() local 163 compileOptions.objectCode = true; in TEST_P() 165 bool success = sh::Compile(mCompiler, shaderStrings, 1, compileOptions); in TEST_P()
|
D | OES_sample_variables_test.cpp | 80 ShCompileOptions compileOptions = {}; in TestShaderCompile() local 81 compileOptions.objectCode = true; in TestShaderCompile() 83 bool success = sh::Compile(mCompiler, shaderStrings, 3, compileOptions); in TestShaderCompile()
|
D | WorkGroupSize_test.cpp | 38 ShCompileOptions compileOptions = {}; in compile() local 39 compileOptions.intermediateTree = true; in compile() 42 bool status = mTranslator->compile(shaderStrings, 1, compileOptions); in compile()
|
D | ShCompile_test.cpp | 207 ShCompileOptions compileOptions = {}; in TEST_F() local 208 compileOptions.objectCode = true; in TEST_F() 213 sh::Compile(mCompiler, parts, 1, compileOptions); in TEST_F() 221 sh::Compile(mCompiler, parts, 1, compileOptions); in TEST_F()
|
D | OVR_multiview_test.cpp | 570 ShCompileOptions compileOptions = {}; in TEST_F() local 571 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F() 573 compile(shaderString, compileOptions); in TEST_F() 597 ShCompileOptions compileOptions = {}; in TEST_F() local 598 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F() 599 compile(shaderString, compileOptions); in TEST_F()
|
D | OVR_multiview2_test.cpp | 553 ShCompileOptions compileOptions = {}; in TEST_F() local 554 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F() 555 compile(shaderString, compileOptions); in TEST_F() 579 ShCompileOptions compileOptions = {}; in TEST_F() local 580 compileOptions.initializeBuiltinsForInstancedMultiview = true; in TEST_F() 581 compile(shaderString, compileOptions); in TEST_F()
|
/external/angle/src/compiler/translator/ |
D | Compiler.cpp | 215 const ShCompileOptions &compileOptions) in RemoveInvariant() argument 221 if (compileOptions.removeInvariantAndCentroidForESSL3 && shaderVersion >= 300 && in RemoveInvariant() 414 bool TCompiler::shouldRunLoopAndIndexingValidation(const ShCompileOptions &compileOptions) const in shouldRunLoopAndIndexingValidation() 420 compileOptions.validateLoopIndexing; in shouldRunLoopAndIndexingValidation() 451 const ShCompileOptions &compileOptions) in compileTreeForTesting() argument 453 return compileTreeImpl(shaderStrings, numStrings, compileOptions); in compileTreeForTesting() 458 const ShCompileOptions &compileOptions) in compileTreeImpl() argument 461 mCompileOptions = compileOptions; in compileTreeImpl() 469 ResetExtensionBehavior(mResources, mExtensionBehavior, compileOptions); in compileTreeImpl() 473 const bool glDrawIDSupported = compileOptions.emulateGLDrawID; in compileTreeImpl() [all …]
|
D | Compiler.h | 58 const ShCompileOptions &compileOptions); 105 const ShCompileOptions &compileOptions); 109 const ShCompileOptions &compileOptions); 149 bool shouldRunLoopAndIndexingValidation(const ShCompileOptions &compileOptions) const; 208 const ShCompileOptions &compileOptions, 242 const ShCompileOptions &compileOptions) in initBuiltInFunctionEmulator() argument 246 const ShCompileOptions &compileOptions, 314 const ShCompileOptions &compileOptions); 326 const ShCompileOptions &compileOptions);
|
/external/angle/src/compiler/translator/glsl/ |
D | TranslatorGLSL.cpp | 27 const ShCompileOptions &compileOptions) in initBuiltInFunctionEmulator() argument 29 if (compileOptions.emulateAbsIntFunction) in initBuiltInFunctionEmulator() 34 if (compileOptions.emulateIsnanFloatFunction) in initBuiltInFunctionEmulator() 39 if (compileOptions.emulateAtan2FloatFunction) in initBuiltInFunctionEmulator() 49 const ShCompileOptions &compileOptions, in translate() argument 58 writeExtensionBehavior(root, compileOptions); in translate() 62 WritePragma(sink, compileOptions, getPragma()); in translate() 68 if (compileOptions.flattenPragmaSTDGLInvariantAll && getPragma().stdgl.invariantAll && in translate() 69 !sh::RemoveInvariant(getShaderType(), getShaderVersion(), getOutputType(), compileOptions)) in translate() 97 if (compileOptions.preTransformTextureCubeGradDerivatives) in translate() [all …]
|
D | TranslatorESSL.cpp | 58 const ShCompileOptions &compileOptions) in initBuiltInFunctionEmulator() argument 60 if (compileOptions.emulateAtan2FloatFunction) in initBuiltInFunctionEmulator() 67 const ShCompileOptions &compileOptions, in translate() argument 89 compileOptions.pls.type == ShPixelLocalStorageType::ImageLoadStore; in translate() 102 writeExtensionBehavior(compileOptions); in translate() 106 WritePragma(sink, compileOptions, getPragma()); in translate() 138 compileOptions.emulateClipDistanceState) in translate() 182 if (compileOptions.emulateClipOrigin) in translate() 210 TOutputESSL outputESSL(this, sink, compileOptions); in translate() 231 void TranslatorESSL::writeExtensionBehavior(const ShCompileOptions &compileOptions) in writeExtensionBehavior() argument [all …]
|
D | TranslatorESSL.h | 22 const ShCompileOptions &compileOptions) override; 25 const ShCompileOptions &compileOptions, 30 void writeExtensionBehavior(const ShCompileOptions &compileOptions);
|
D | TranslatorGLSL.h | 22 const ShCompileOptions &compileOptions) override; 25 const ShCompileOptions &compileOptions, 31 void writeExtensionBehavior(TIntermNode *root, const ShCompileOptions &compileOptions);
|
D | OutputESSL.cpp | 14 const ShCompileOptions &compileOptions) in TOutputESSL() argument 15 : TOutputGLSLBase(compiler, objSink, compileOptions) in TOutputESSL()
|
/external/angle/src/compiler/translator/hlsl/ |
D | TranslatorHLSL.cpp | 40 const ShCompileOptions &compileOptions, in translate() argument 139 if (!shouldRunLoopAndIndexingValidation(compileOptions)) in translate() 177 if (compileOptions.expandSelectHLSLIntegerPowExpressions) in translate() 185 if (compileOptions.rewriteTexelFetchOffsetToTexelFetch) in translate() 193 if (compileOptions.rewriteIntegerUnaryMinusOperator && getShaderType() == GL_VERTEX_SHADER) in translate() 221 if (getShaderVersion() == 300 && compileOptions.allowTranslateUniformBlockToStructuredBuffer) in translate() 233 compileOptions, getComputeShaderLocalSize(), &getSymbolTable(), perfDiagnostics, in translate()
|
/external/angle/src/compiler/translator/tree_ops/ |
D | RewritePixelLocalStorage.cpp | 98 const ShCompileOptions &compileOptions, in RewritePLSTraverser() argument 102 mCompileOptions(&compileOptions), in RewritePLSTraverser() 325 const ShCompileOptions &compileOptions, in RewritePLSToImagesTraverser() argument 327 : RewritePLSTraverser(compiler, symbolTable, compileOptions, shaderVersion) in RewritePLSToImagesTraverser() 578 const ShCompileOptions &compileOptions, in injectPrePLSCode() argument 593 switch (compileOptions.pls.fragmentSyncType) in injectPrePLSCode() 625 const ShCompileOptions &compileOptions, in injectPostPLSCode() argument 634 switch (compileOptions.pls.fragmentSyncType) in injectPostPLSCode() 670 const ShCompileOptions &compileOptions, in RewritePLSToFramebufferFetchTraverser() argument 672 : RewritePLSTraverser(compiler, symbolTable, compileOptions, shaderVersion) in RewritePLSToFramebufferFetchTraverser() [all …]
|
/external/angle/src/tests/perf_tests/ |
D | CompilerPerf.cpp | 306 ShCompileOptions compileOptions = {}; in step() local 307 compileOptions.objectCode = true; in step() 308 compileOptions.initializeUninitializedLocals = true; in step() 309 compileOptions.initOutputVariables = true; in step() 313 if (!mTranslator->compile(shaderStrings, 1, compileOptions)) in step() 322 mTranslator->compile(shaderStrings, 1, compileOptions); in step()
|
/external/angle/samples/shader_translator/ |
D | shader_translator.cpp | 36 static bool CompileFile(char *fileName, ShHandle compiler, const ShCompileOptions &compileOptions); 82 ShCompileOptions compileOptions = {}; in main() local 109 compileOptions.intermediateTree = true; in main() 112 compileOptions.objectCode = true; in main() 178 compileOptions.initializeUninitializedLocals = true; in main() 185 compileOptions.initializeUninitializedLocals = true; in main() 189 compileOptions.initializeUninitializedLocals = true; in main() 252 compileOptions.initializeBuiltinsForInstancedMultiview = true; in main() 253 compileOptions.selectViewInNvGLSLVertexShader = true; in main() 343 compileOptions.selectViewInNvGLSLVertexShader = false; in main() [all …]
|
/external/angle/src/tests/test_utils/ |
D | compiler_test.cpp | 68 const ShCompileOptions &compileOptions, in compileTestShader() argument 81 ShCompileOptions options = compileOptions; in compileTestShader() 101 const ShCompileOptions &compileOptions, in compileTestShader() argument 108 return compileTestShader(type, spec, output, shaderString, &resources, compileOptions, in compileTestShader() 141 const ShCompileOptions &compileOptions) in compile() argument 147 compileWithSettings(code.first, shaderString, compileOptions, &code.second, &infoLog); in compile() 157 const ShCompileOptions &compileOptions, in compileWithSettings() argument 162 compileOptions, translatedCode, infoLog); in compileWithSettings()
|
D | compiler_test.h | 31 const ShCompileOptions &compileOptions, 39 const ShCompileOptions &compileOptions, 55 void compile(const std::string &shaderString, const ShCompileOptions &compileOptions); 98 const ShCompileOptions &compileOptions,
|
/external/angle/src/compiler/translator/tree_ops/spirv/ |
D | EmulateDithering.cpp | 72 const ShCompileOptions &compileOptions, in EmitFragmentOutputDither() argument 80 bool roundOutputAfterDithering = compileOptions.roundOutputAfterDithering; in EmitFragmentOutputDither() 237 const ShCompileOptions &compileOptions, in EmitFragmentVariableDither() argument 261 EmitFragmentOutputDither(compiler, compileOptions, symbolTable, ditherBlock, ditherControl, in EmitFragmentVariableDither() 270 EmitFragmentOutputDither(compiler, compileOptions, symbolTable, ditherBlock, ditherControl, in EmitFragmentVariableDither() 276 const ShCompileOptions &compileOptions, in EmitDitheringBlock() argument 428 EmitFragmentVariableDither(compiler, compileOptions, symbolTable, ditherBlock, in EmitDitheringBlock() 437 const ShCompileOptions &compileOptions, in EmulateDithering() argument 446 TIntermNode *ditherCode = EmitDitheringBlock(compiler, compileOptions, symbolTable, specConst, in EmulateDithering()
|
/external/angle/src/compiler/translator/spirv/ |
D | TranslatorSPIRV.cpp | 531 const ShCompileOptions &compileOptions, in AddVertexTransformationSupport() argument 584 if (compileOptions.addVulkanDepthCorrection) in AddVertexTransformationSupport() 627 const ShCompileOptions &compileOptions, in InsertFragCoordCorrection() argument 650 const ShCompileOptions &compileOptions) in HasFramebufferFetch() argument 658 (compileOptions.pls.type == ShPixelLocalStorageType::FramebufferFetch && in HasFramebufferFetch() 753 const ShCompileOptions &compileOptions, in translateImpl() argument 760 if (!ShaderBuiltinsWorkaround(this, root, &getSymbolTable(), compileOptions)) in translateImpl() 876 if (r32fImageCount > 0 && compileOptions.emulateR32fImageAtomicExchange) in translateImpl() 957 if (compileOptions.addVulkanXfbExtensionSupportCode) in translateImpl() 967 if (!AddVertexTransformationSupport(this, compileOptions, root, &getSymbolTable(), in translateImpl() [all …]
|
/external/angle/src/compiler/translator/null/ |
D | TranslatorNULL.h | 22 const ShCompileOptions &compileOptions) override in initBuiltInFunctionEmulator() argument 26 const ShCompileOptions &compileOptions, in translate() argument
|