diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-11 18:11:13 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-11 18:11:13 +0200 |
commit | 4f2ecd53a9daaf88bb7d075745eefb6e2e4741e0 (patch) | |
tree | f000dd831240707a03b8c806db292c2a15cde3ce /gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp | |
parent | 3b7ffb477eec078c7036c92c6a51bb5de6de4f28 (diff) | |
download | UXP-4f2ecd53a9daaf88bb7d075745eefb6e2e4741e0.tar UXP-4f2ecd53a9daaf88bb7d075745eefb6e2e4741e0.tar.gz UXP-4f2ecd53a9daaf88bb7d075745eefb6e2e4741e0.tar.lz UXP-4f2ecd53a9daaf88bb7d075745eefb6e2e4741e0.tar.xz UXP-4f2ecd53a9daaf88bb7d075745eefb6e2e4741e0.zip |
Roll back to ANGLE/2845
Diffstat (limited to 'gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp')
-rwxr-xr-x | gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp b/gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp index 2cd2bfdf4..783a93c10 100755 --- a/gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp +++ b/gfx/angle/src/tests/compiler_tests/RecordConstantPrecision_test.cpp @@ -12,8 +12,6 @@ #include "GLSLANG/ShaderLang.h" #include "tests/test_utils/compiler_test.h" -using namespace sh; - class RecordConstantPrecisionTest : public MatchOutputCodeTest { public: @@ -33,7 +31,7 @@ TEST_F(RecordConstantPrecisionTest, HigherPrecisionConstantAsParameter) " gl_FragColor = vec4(b);\n" "}\n"; compile(shaderString); - ASSERT_TRUE(foundInCode("const highp float webgl_angle_s")); + ASSERT_TRUE(foundInCode("const highp float s")); ASSERT_FALSE(foundInCode("fract(4096.5")); ASSERT_FALSE(foundInCode("fract((4096.5")); } @@ -51,7 +49,7 @@ TEST_F(RecordConstantPrecisionTest, EqualPrecisionConstantAsParameter) " gl_FragColor = vec4(b);\n" "}\n"; compile(shaderString); - ASSERT_FALSE(foundInCode("const mediump float webgl_angle_s")); + ASSERT_FALSE(foundInCode("const mediump float s")); ASSERT_TRUE(foundInCode("fract((4096.5")); } @@ -69,7 +67,7 @@ TEST_F(RecordConstantPrecisionTest, FoldedBinaryConstantPrecisionIsHigher) " gl_FragColor = vec4(b);\n" "}\n"; compile(shaderString); - ASSERT_TRUE(foundInCode("const highp float webgl_angle_s")); + ASSERT_TRUE(foundInCode("const highp float s")); ASSERT_FALSE(foundInCode("fract(4096.5")); ASSERT_FALSE(foundInCode("fract((4096.5")); } @@ -89,7 +87,7 @@ TEST_F(RecordConstantPrecisionTest, FoldedUnaryConstantPrecisionIsHigher) " gl_FragColor = vec4(b);\n" "}\n"; compile(shaderString); - ASSERT_TRUE(foundInCode("const highp float webgl_angle_s")); + ASSERT_TRUE(foundInCode("const highp float s")); ASSERT_FALSE(foundInCode("sin(0.5")); ASSERT_FALSE(foundInCode("sin((0.5")); } |