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

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

Issue 2297663005: Remove SH_EMULATE_BUILT_IN_FUNCTIONS dependencies. (Closed)
Patch Set: 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/command_buffer/service/shader_translator_unittest.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 3695 matching lines...) Expand 10 before | Expand all | Expand 10 after
3706 } 3706 }
3707 3707
3708 if (((shader_spec == SH_WEBGL_SPEC || shader_spec == SH_WEBGL2_SPEC) && 3708 if (((shader_spec == SH_WEBGL_SPEC || shader_spec == SH_WEBGL2_SPEC) &&
3709 features().enable_shader_name_hashing) || 3709 features().enable_shader_name_hashing) ||
3710 force_shader_name_hashing_for_test) 3710 force_shader_name_hashing_for_test)
3711 resources.HashFunction = &CityHash64; 3711 resources.HashFunction = &CityHash64;
3712 else 3712 else
3713 resources.HashFunction = NULL; 3713 resources.HashFunction = NULL;
3714 3714
3715 int driver_bug_workarounds = 0; 3715 int driver_bug_workarounds = 0;
3716 if (workarounds().needs_glsl_built_in_function_emulation)
3717 driver_bug_workarounds |= SH_EMULATE_BUILT_IN_FUNCTIONS;
3718 if (workarounds().init_gl_position_in_vertex_shader) 3716 if (workarounds().init_gl_position_in_vertex_shader)
3719 driver_bug_workarounds |= SH_INIT_GL_POSITION; 3717 driver_bug_workarounds |= SH_INIT_GL_POSITION;
3720 if (workarounds().unfold_short_circuit_as_ternary_operation) 3718 if (workarounds().unfold_short_circuit_as_ternary_operation)
3721 driver_bug_workarounds |= SH_UNFOLD_SHORT_CIRCUIT; 3719 driver_bug_workarounds |= SH_UNFOLD_SHORT_CIRCUIT;
3722 if (workarounds().scalarize_vec_and_mat_constructor_args) 3720 if (workarounds().scalarize_vec_and_mat_constructor_args)
3723 driver_bug_workarounds |= SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS; 3721 driver_bug_workarounds |= SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS;
3724 if (workarounds().regenerate_struct_names) 3722 if (workarounds().regenerate_struct_names)
3725 driver_bug_workarounds |= SH_REGENERATE_STRUCT_NAMES; 3723 driver_bug_workarounds |= SH_REGENERATE_STRUCT_NAMES;
3726 if (workarounds().remove_pow_with_constant_exponent) 3724 if (workarounds().remove_pow_with_constant_exponent)
3727 driver_bug_workarounds |= SH_REMOVE_POW_WITH_CONSTANT_EXPONENT; 3725 driver_bug_workarounds |= SH_REMOVE_POW_WITH_CONSTANT_EXPONENT;
(...skipping 14015 matching lines...) Expand 10 before | Expand all | Expand 10 after
17743 } 17741 }
17744 17742
17745 // Include the auto-generated part of this file. We split this because it means 17743 // Include the auto-generated part of this file. We split this because it means
17746 // we can easily edit the non-auto generated parts right here in this file 17744 // we can easily edit the non-auto generated parts right here in this file
17747 // instead of having to edit some template or the code generator. 17745 // instead of having to edit some template or the code generator.
17748 #include "base/macros.h" 17746 #include "base/macros.h"
17749 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 17747 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
17750 17748
17751 } // namespace gles2 17749 } // namespace gles2
17752 } // namespace gpu 17750 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/shader_translator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698