OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
6 #include <GLES2/gl2ext.h> | 6 #include <GLES2/gl2ext.h> |
7 #include <GLES2/gl2extchromium.h> | 7 #include <GLES2/gl2extchromium.h> |
8 #include <GLES3/gl3.h> | 8 #include <GLES3/gl3.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 }); | 214 }); |
215 // clang-format on | 215 // clang-format on |
216 CreateProgramWithFragmentShader(kFragColorShader); | 216 CreateProgramWithFragmentShader(kFragColorShader); |
217 LinkProgram(); | 217 LinkProgram(); |
218 DrawAndVerify(); | 218 DrawAndVerify(); |
219 } | 219 } |
220 | 220 |
221 TEST_P(EXTBlendFuncExtendedDrawTest, ESSL1FragData) { | 221 TEST_P(EXTBlendFuncExtendedDrawTest, ESSL1FragData) { |
222 if (!IsApplicable()) | 222 if (!IsApplicable()) |
223 return; | 223 return; |
| 224 |
| 225 // Fails on the Intel Mesa driver, see |
| 226 // https://bugs.freedesktop.org/show_bug.cgi?id=96617 |
| 227 gpu::GPUTestBotConfig bot_config; |
| 228 if (bot_config.LoadCurrentConfig(nullptr) && |
| 229 bot_config.Matches("linux intel")) { |
| 230 return; |
| 231 } |
| 232 |
224 // clang-format off | 233 // clang-format off |
225 static const char* kFragDataShader = | 234 static const char* kFragDataShader = |
226 BFE_SHADER( | 235 BFE_SHADER( |
227 precision mediump float; | 236 precision mediump float; |
228 uniform vec4 src; | 237 uniform vec4 src; |
229 uniform vec4 src1; | 238 uniform vec4 src1; |
230 void main() { | 239 void main() { |
231 gl_FragData[0] = src; | 240 gl_FragData[0] = src; |
232 gl_SecondaryFragDataEXT[0] = src1; | 241 gl_SecondaryFragDataEXT[0] = src1; |
233 }); | 242 }); |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 | 662 |
654 INSTANTIATE_TEST_CASE_P(TranslatorVariants, | 663 INSTANTIATE_TEST_CASE_P(TranslatorVariants, |
655 EXTBlendFuncExtendedDrawTest, | 664 EXTBlendFuncExtendedDrawTest, |
656 ::testing::Bool()); | 665 ::testing::Bool()); |
657 | 666 |
658 INSTANTIATE_TEST_CASE_P(TranslatorVariants, | 667 INSTANTIATE_TEST_CASE_P(TranslatorVariants, |
659 EXTBlendFuncExtendedES3DrawTest, | 668 EXTBlendFuncExtendedES3DrawTest, |
660 ::testing::Bool()); | 669 ::testing::Bool()); |
661 | 670 |
662 } // namespace gpu | 671 } // namespace gpu |
OLD | NEW |