/external/angle/src/tests/compiler_tests/ |
D | RemoveUnreferencedVariables_test.cpp | 86 ASSERT_TRUE(foundInCode("sideEffect(1)")); in TEST_F() 107 ASSERT_TRUE(foundInCode("modf(")); in TEST_F() 125 ASSERT_TRUE(foundInCode("imageStore(")); in TEST_F() 162 ASSERT_TRUE(foundInCode("myReferencedVec3")); in TEST_F() 163 ASSERT_TRUE(foundInCode("myReferencedVec2")); in TEST_F() 164 ASSERT_TRUE(foundInCode("myReferencedVec1")); in TEST_F() 209 ASSERT_TRUE(foundInCode("myReferencedVec3")); in TEST_F() 210 ASSERT_TRUE(foundInCode("myReferencedVec2")); in TEST_F() 211 ASSERT_TRUE(foundInCode("myReferencedVec1")); in TEST_F() 233 ASSERT_TRUE(foundInCode("myVec", 2)); in TEST_F() [all …]
|
D | RecordConstantPrecision_test.cpp | 36 ASSERT_TRUE(foundInCode("const highp float s")); in TEST_F() 37 ASSERT_FALSE(foundInCode("fract(4096.5")); in TEST_F() 38 ASSERT_FALSE(foundInCode("fract((4096.5")); in TEST_F() 54 ASSERT_FALSE(foundInCode("const mediump float s")); in TEST_F() 55 ASSERT_TRUE(foundInCode("fract((4096.5")); in TEST_F() 72 ASSERT_TRUE(foundInCode("const highp float s")); in TEST_F() 73 ASSERT_FALSE(foundInCode("fract(4096.5")); in TEST_F() 74 ASSERT_FALSE(foundInCode("fract((4096.5")); in TEST_F() 91 ASSERT_TRUE(foundInCode("const highp float s")); in TEST_F() 92 ASSERT_FALSE(foundInCode("sin(0.5")); in TEST_F() [all …]
|
D | PruneUnusedFunctions_test.cpp | 47 EXPECT_TRUE(foundInCode("main(", 1)); in TEST_F() 50 EXPECT_TRUE(foundInCode("unused(", 2)); in TEST_F() 51 EXPECT_TRUE(foundInCode("main(", 1)); in TEST_F() 65 EXPECT_TRUE(foundInCode("main(", 1)); in TEST_F() 68 EXPECT_TRUE(foundInCode("unused(", 1)); in TEST_F() 69 EXPECT_TRUE(foundInCode("main(", 1)); in TEST_F() 85 EXPECT_TRUE(foundInCode("used(", 3)); in TEST_F() 86 EXPECT_TRUE(foundInCode("main(", 1)); in TEST_F() 89 EXPECT_TRUE(foundInCode("used(", 3)); in TEST_F() 90 EXPECT_TRUE(foundInCode("main(", 1)); in TEST_F()
|
D | EmulateGLFragColorBroadcast_test.cpp | 45 EXPECT_TRUE(foundInCode("gl_FragColor")); in TEST_F() 46 EXPECT_FALSE(foundInCode("gl_FragData[0]")); in TEST_F() 47 EXPECT_FALSE(foundInCode("gl_FragData[1]")); in TEST_F() 61 EXPECT_FALSE(foundInCode("gl_FragColor")); in TEST_F() 62 EXPECT_TRUE(foundInCode("gl_FragData[0]")); in TEST_F() 63 EXPECT_TRUE(foundInCode("gl_FragData[1]")); in TEST_F() 76 EXPECT_FALSE(foundInCode("gl_FragColor")); in TEST_F() 77 EXPECT_FALSE(foundInCode("gl_FragData[0]")); in TEST_F() 78 EXPECT_FALSE(foundInCode("gl_FragData[1]")); in TEST_F()
|
D | EmulateGLBaseVertexBaseInstance_test.cpp | 92 EXPECT_TRUE(foundInCode("angle_BaseVertex")); in TEST_F() 94 EXPECT_TRUE(foundInCode("angle_BaseInstance")); in TEST_F() 97 EXPECT_TRUE(foundInCode(SH_GLSL_COMPATIBILITY_OUTPUT, "uniform int angle_BaseVertex")); in TEST_F() 98 EXPECT_TRUE(foundInCode(SH_GLSL_COMPATIBILITY_OUTPUT, "uniform int angle_BaseInstance")); in TEST_F() 99 EXPECT_TRUE(foundInCode(SH_ESSL_OUTPUT, "uniform highp int angle_BaseVertex")); in TEST_F() 100 EXPECT_TRUE(foundInCode(SH_ESSL_OUTPUT, "uniform highp int angle_BaseInstance")); in TEST_F() 103 EXPECT_TRUE(foundInCode( in TEST_F() 108 EXPECT_TRUE(foundInCode(SH_HLSL_3_0_OUTPUT, "uniform int angle_BaseVertex : register")); in TEST_F() 109 EXPECT_TRUE(foundInCode(SH_HLSL_3_0_OUTPUT, "uniform int angle_BaseInstance : register")); in TEST_F() 218 EXPECT_TRUE(foundInCode(" angle_BaseVertex", 2)); in TEST_F() [all …]
|
D | Pack_Unpack_test.cpp | 40 ASSERT_TRUE(foundInCode("uint packSnorm2x16_emu(vec2 v)")); in TEST_F() 57 ASSERT_TRUE(foundInCode("vec2 unpackSnorm2x16_emu(uint u)")); in TEST_F() 74 ASSERT_TRUE(foundInCode("uint packUnorm2x16_emu(vec2 v)")); in TEST_F() 91 ASSERT_TRUE(foundInCode("vec2 unpackUnorm2x16_emu(uint u)")); in TEST_F() 108 ASSERT_TRUE(foundInCode("uint packHalf2x16_emu(vec2 v)")); in TEST_F() 125 ASSERT_TRUE(foundInCode("vec2 unpackHalf2x16_emu(uint u)")); in TEST_F()
|
D | EmulateGLDrawID_test.cpp | 92 EXPECT_TRUE(foundInCode("angle_DrawID")); in TEST_F() 95 EXPECT_TRUE(foundInCode(SH_GLSL_COMPATIBILITY_OUTPUT, "uniform int angle_DrawID")); in TEST_F() 96 EXPECT_TRUE(foundInCode(SH_ESSL_OUTPUT, "uniform highp int angle_DrawID")); in TEST_F() 100 foundInCode(SH_GLSL_VULKAN_OUTPUT, "uniform defaultUniformsVS\n{\n int angle_DrawID;")); in TEST_F() 103 EXPECT_TRUE(foundInCode(SH_HLSL_3_0_OUTPUT, "uniform int angle_DrawID : register")); in TEST_F() 104 EXPECT_TRUE(foundInCode(SH_HLSL_3_0_OUTPUT, "uniform int angle_DrawID : register")); in TEST_F() 170 EXPECT_TRUE(foundInCode(" angle_DrawID", 2)); in TEST_F()
|
D | PrunePureLiteralStatements_test.cpp | 38 ASSERT_TRUE(foundInCode("41")); in TEST_F() 54 ASSERT_TRUE(foundInCode("41")); in TEST_F() 146 ASSERT_TRUE(foundInCode("default")); in TEST_F() 147 ASSERT_TRUE(foundInCode("case")); in TEST_F()
|
D | RegenerateStructNames_test.cpp | 50 EXPECT_TRUE(foundInCode("struct _umyStruct")); in TEST_F() 51 EXPECT_TRUE(foundInCode("struct _u_webgl_struct_")); in TEST_F() 72 EXPECT_TRUE(foundInCode("struct")); in TEST_F()
|
D | PruneEmptyDeclarations_test.cpp | 39 ASSERT_TRUE(foundInCode("float _uf")); in TEST_F() 56 ASSERT_TRUE(foundInCode("struct _uS")); in TEST_F() 57 ASSERT_TRUE(foundInCode("uniform _uS")); in TEST_F()
|
D | UnfoldShortCircuitAST_test.cpp | 44 ASSERT_TRUE(foundInCode("(_ub) ? (_ub2) : (false)")); in TEST_F() 67 ASSERT_TRUE(foundInCode("(_ub) ? (true) : (_ub2)")); in TEST_F() 91 ASSERT_TRUE(foundInCode("(_ub) ? (((_ub2) ? (true) : (_ub3))) : (false)")); in TEST_F()
|
D | HLSLOutput_test.cpp | 72 EXPECT_TRUE(foundInCode("_foo")); in TEST_F() 73 EXPECT_FALSE(foundInCode("(foo)")); in TEST_F() 74 EXPECT_FALSE(foundInCode(" foo")); in TEST_F() 257 EXPECT_FALSE(foundInCode("map_instances")); in TEST_F()
|
D | PruneEmptyCases_test.cpp | 80 ASSERT_TRUE(foundInCode("++_ui")); in TEST_F() 110 ASSERT_TRUE(foundInCode("switch")); in TEST_F() 111 ASSERT_TRUE(foundInCode("case", 1)); in TEST_F()
|
D | NV_draw_buffers_test.cpp | 39 ASSERT_TRUE(foundInCode("GL_NV_draw_buffers")); in TEST_F() 40 ASSERT_FALSE(foundInCode("GL_EXT_draw_buffers")); in TEST_F()
|
D | DebugShaderPrecision_test.cpp | 32 return foundInCode(SH_GLSL_COMPATIBILITY_OUTPUT, str) && foundInCode(SH_ESSL_OUTPUT, str); in foundInAllGLSLCode() 38 return foundInCode(SH_HLSL_4_1_OUTPUT, stringToFind); in foundInHLSLCode() 199 ASSERT_TRUE(foundInCode("angle_frm")); in TEST_F() 215 ASSERT_TRUE(foundInCode("angle_frm")); in TEST_F() 227 ASSERT_FALSE(foundInCode("angle_frm")); in TEST_F() 240 ASSERT_FALSE(foundInCode("angle_frm")); in TEST_F()
|
D | GLSLCompatibilityOutput_test.cpp | 33 EXPECT_TRUE(foundInCode("gl_Position")); in TEST_F()
|
D | OVR_multiview_test.cpp | 147 return foundInCode(SH_HLSL_4_1_OUTPUT, stringToFind); in foundInHLSLCode()
|
D | OVR_multiview2_test.cpp | 150 return foundInCode(SH_HLSL_4_1_OUTPUT, stringToFind); in foundInHLSLCode()
|
/external/angle/src/tests/test_utils/ |
D | compiler_test.h | 60 return foundInCode(SH_ESSL_OUTPUT, stringToFind); in foundInESSLCode() 65 return foundInCode(SH_GLSL_COMPATIBILITY_OUTPUT, stringToFind); in foundInGLSLCode() 68 bool foundInCode(ShShaderOutput output, const char *stringToFind) const; 77 bool foundInCode(ShShaderOutput output, 82 bool foundInCode(const char *stringToFind) const; 86 bool foundInCode(const char *stringToFind, const int expectedOccurrences) const;
|
D | compiler_test.cpp | 180 bool MatchOutputCodeTest::foundInCode(ShShaderOutput output, const char *stringToFind) const in foundInCode() function in sh::MatchOutputCodeTest 214 bool MatchOutputCodeTest::foundInCode(ShShaderOutput output, in foundInCode() function in sh::MatchOutputCodeTest 244 bool MatchOutputCodeTest::foundInCode(const char *stringToFind) const in foundInCode() function in sh::MatchOutputCodeTest 248 if (!foundInCode(code.first, stringToFind)) in foundInCode() 268 bool MatchOutputCodeTest::foundInCode(const char *stringToFind, const int expectedOccurrences) const in foundInCode() function in sh::MatchOutputCodeTest 272 if (!foundInCode(code.first, stringToFind, expectedOccurrences)) in foundInCode() 296 if (foundInCode(code.first, stringToFind)) in notFoundInCode()
|