Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2378373003: Enable ANGLE workaround for unused std140/shared blocks bug (Closed)
Patch Set: Suppress random.html on Intel/AMD gpu on Mac Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 3799 matching lines...) Expand 10 before | Expand all | Expand 10 after
3810 if (workarounds().emulate_abs_int_function) 3810 if (workarounds().emulate_abs_int_function)
3811 driver_bug_workarounds |= SH_EMULATE_ABS_INT_FUNCTION; 3811 driver_bug_workarounds |= SH_EMULATE_ABS_INT_FUNCTION;
3812 if (workarounds().rewrite_texelfetchoffset_to_texelfetch) 3812 if (workarounds().rewrite_texelfetchoffset_to_texelfetch)
3813 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH; 3813 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH;
3814 if (workarounds().add_and_true_to_loop_condition) 3814 if (workarounds().add_and_true_to_loop_condition)
3815 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; 3815 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
3816 if (workarounds().rewrite_do_while_loops) 3816 if (workarounds().rewrite_do_while_loops)
3817 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; 3817 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS;
3818 if (workarounds().emulate_isnan_on_float) 3818 if (workarounds().emulate_isnan_on_float)
3819 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION; 3819 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION;
3820 if (workarounds().use_unused_standard_shared_blocks)
3821 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS;
3820 3822
3821 resources.WEBGL_debug_shader_precision = 3823 resources.WEBGL_debug_shader_precision =
3822 group_->gpu_preferences().emulate_shader_precision; 3824 group_->gpu_preferences().emulate_shader_precision;
3823 3825
3824 ShShaderOutput shader_output_language = 3826 ShShaderOutput shader_output_language =
3825 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); 3827 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info());
3826 3828
3827 vertex_translator_ = shader_translator_cache()->GetTranslator( 3829 vertex_translator_ = shader_translator_cache()->GetTranslator(
3828 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, 3830 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language,
3829 driver_bug_workarounds); 3831 driver_bug_workarounds);
(...skipping 14689 matching lines...) Expand 10 before | Expand all | Expand 10 after
18519 } 18521 }
18520 18522
18521 // Include the auto-generated part of this file. We split this because it means 18523 // Include the auto-generated part of this file. We split this because it means
18522 // we can easily edit the non-auto generated parts right here in this file 18524 // we can easily edit the non-auto generated parts right here in this file
18523 // instead of having to edit some template or the code generator. 18525 // instead of having to edit some template or the code generator.
18524 #include "base/macros.h" 18526 #include "base/macros.h"
18525 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18527 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18526 18528
18527 } // namespace gles2 18529 } // namespace gles2
18528 } // namespace gpu 18530 } // namespace gpu
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698