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

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

Issue 2376033004: Add isnan() workaround for Intel Mac (Closed)
Patch Set: Rebase 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
« 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 3746 matching lines...) Expand 10 before | Expand all | Expand 10 after
3757 if (workarounds().remove_pow_with_constant_exponent) 3757 if (workarounds().remove_pow_with_constant_exponent)
3758 driver_bug_workarounds |= SH_REMOVE_POW_WITH_CONSTANT_EXPONENT; 3758 driver_bug_workarounds |= SH_REMOVE_POW_WITH_CONSTANT_EXPONENT;
3759 if (workarounds().emulate_abs_int_function) 3759 if (workarounds().emulate_abs_int_function)
3760 driver_bug_workarounds |= SH_EMULATE_ABS_INT_FUNCTION; 3760 driver_bug_workarounds |= SH_EMULATE_ABS_INT_FUNCTION;
3761 if (workarounds().rewrite_texelfetchoffset_to_texelfetch) 3761 if (workarounds().rewrite_texelfetchoffset_to_texelfetch)
3762 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH; 3762 driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH;
3763 if (workarounds().add_and_true_to_loop_condition) 3763 if (workarounds().add_and_true_to_loop_condition)
3764 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; 3764 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
3765 if (workarounds().rewrite_do_while_loops) 3765 if (workarounds().rewrite_do_while_loops)
3766 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; 3766 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS;
3767 if (workarounds().emulate_isnan_on_float)
3768 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION;
3767 3769
3768 resources.WEBGL_debug_shader_precision = 3770 resources.WEBGL_debug_shader_precision =
3769 group_->gpu_preferences().emulate_shader_precision; 3771 group_->gpu_preferences().emulate_shader_precision;
3770 3772
3771 ShShaderOutput shader_output_language = 3773 ShShaderOutput shader_output_language =
3772 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); 3774 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info());
3773 3775
3774 vertex_translator_ = shader_translator_cache()->GetTranslator( 3776 vertex_translator_ = shader_translator_cache()->GetTranslator(
3775 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, 3777 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language,
3776 driver_bug_workarounds); 3778 driver_bug_workarounds);
(...skipping 14468 matching lines...) Expand 10 before | Expand all | Expand 10 after
18245 } 18247 }
18246 18248
18247 // Include the auto-generated part of this file. We split this because it means 18249 // Include the auto-generated part of this file. We split this because it means
18248 // we can easily edit the non-auto generated parts right here in this file 18250 // we can easily edit the non-auto generated parts right here in this file
18249 // instead of having to edit some template or the code generator. 18251 // instead of having to edit some template or the code generator.
18250 #include "base/macros.h" 18252 #include "base/macros.h"
18251 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18253 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18252 18254
18253 } // namespace gles2 18255 } // namespace gles2
18254 } // namespace gpu 18256 } // 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