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

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

Issue 2343863003: gpu/config: Add workaround rewrite do-while on Mac < 10.11 (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3709 matching lines...) Expand 10 before | Expand all | Expand 10 after
3720 if (workarounds().regenerate_struct_names) 3720 if (workarounds().regenerate_struct_names)
3721 driver_bug_workarounds |= SH_REGENERATE_STRUCT_NAMES; 3721 driver_bug_workarounds |= SH_REGENERATE_STRUCT_NAMES;
3722 if (workarounds().remove_pow_with_constant_exponent) 3722 if (workarounds().remove_pow_with_constant_exponent)
3723 driver_bug_workarounds |= SH_REMOVE_POW_WITH_CONSTANT_EXPONENT; 3723 driver_bug_workarounds |= SH_REMOVE_POW_WITH_CONSTANT_EXPONENT;
3724 if (workarounds().emulate_abs_int_function) 3724 if (workarounds().emulate_abs_int_function)
3725 driver_bug_workarounds |= SH_EMULATE_ABS_INT_FUNCTION; 3725 driver_bug_workarounds |= SH_EMULATE_ABS_INT_FUNCTION;
3726 if (workarounds().rewrite_texelfetchoffset_to_texelfetch) 3726 if (workarounds().rewrite_texelfetchoffset_to_texelfetch)
3727 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH; 3727 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH;
3728 if (workarounds().add_and_true_to_loop_condition) 3728 if (workarounds().add_and_true_to_loop_condition)
3729 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; 3729 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
3730 if (workarounds().rewrite_do_while_loops)
3731 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS;
3730 3732
3731 resources.WEBGL_debug_shader_precision = 3733 resources.WEBGL_debug_shader_precision =
3732 group_->gpu_preferences().emulate_shader_precision; 3734 group_->gpu_preferences().emulate_shader_precision;
3733 3735
3734 ShShaderOutput shader_output_language = 3736 ShShaderOutput shader_output_language =
3735 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); 3737 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info());
3736 3738
3737 vertex_translator_ = shader_translator_cache()->GetTranslator( 3739 vertex_translator_ = shader_translator_cache()->GetTranslator(
3738 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, 3740 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language,
3739 driver_bug_workarounds); 3741 driver_bug_workarounds);
(...skipping 14236 matching lines...) Expand 10 before | Expand all | Expand 10 after
17976 } 17978 }
17977 17979
17978 // Include the auto-generated part of this file. We split this because it means 17980 // Include the auto-generated part of this file. We split this because it means
17979 // we can easily edit the non-auto generated parts right here in this file 17981 // we can easily edit the non-auto generated parts right here in this file
17980 // instead of having to edit some template or the code generator. 17982 // instead of having to edit some template or the code generator.
17981 #include "base/macros.h" 17983 #include "base/macros.h"
17982 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 17984 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
17983 17985
17984 } // namespace gles2 17986 } // namespace gles2
17985 } // namespace gpu 17987 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698