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

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

Issue 2456823002: Remove invariant for input in fragment shader (Closed)
Patch Set: fix workaround description Created 4 years, 1 month 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 3804 matching lines...) Expand 10 before | Expand all | Expand 10 after
3815 if (workarounds().rewrite_texelfetchoffset_to_texelfetch) 3815 if (workarounds().rewrite_texelfetchoffset_to_texelfetch)
3816 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH; 3816 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH;
3817 if (workarounds().add_and_true_to_loop_condition) 3817 if (workarounds().add_and_true_to_loop_condition)
3818 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; 3818 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
3819 if (workarounds().rewrite_do_while_loops) 3819 if (workarounds().rewrite_do_while_loops)
3820 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; 3820 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS;
3821 if (workarounds().emulate_isnan_on_float) 3821 if (workarounds().emulate_isnan_on_float)
3822 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION; 3822 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION;
3823 if (workarounds().use_unused_standard_shared_blocks) 3823 if (workarounds().use_unused_standard_shared_blocks)
3824 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS; 3824 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS;
3825 if (workarounds().dont_remove_invariant_for_fragment_input)
3826 driver_bug_workarounds |= SH_DONT_REMOVE_INVARIANT_FOR_FRAGMENT_INPUT;
3825 3827
3826 resources.WEBGL_debug_shader_precision = 3828 resources.WEBGL_debug_shader_precision =
3827 group_->gpu_preferences().emulate_shader_precision; 3829 group_->gpu_preferences().emulate_shader_precision;
3828 3830
3829 ShShaderOutput shader_output_language = 3831 ShShaderOutput shader_output_language =
3830 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); 3832 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info());
3831 3833
3832 vertex_translator_ = shader_translator_cache()->GetTranslator( 3834 vertex_translator_ = shader_translator_cache()->GetTranslator(
3833 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, 3835 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language,
3834 driver_bug_workarounds); 3836 driver_bug_workarounds);
(...skipping 14870 matching lines...) Expand 10 before | Expand all | Expand 10 after
18705 } 18707 }
18706 18708
18707 // Include the auto-generated part of this file. We split this because it means 18709 // Include the auto-generated part of this file. We split this because it means
18708 // we can easily edit the non-auto generated parts right here in this file 18710 // we can easily edit the non-auto generated parts right here in this file
18709 // instead of having to edit some template or the code generator. 18711 // instead of having to edit some template or the code generator.
18710 #include "base/macros.h" 18712 #include "base/macros.h"
18711 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18713 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18712 18714
18713 } // namespace gles2 18715 } // namespace gles2
18714 } // namespace gpu 18716 } // 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