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

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

Issue 474093002: Hook up two GPU driver bug workarounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
« 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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2812 if (workarounds().init_gl_position_in_vertex_shader) 2812 if (workarounds().init_gl_position_in_vertex_shader)
2813 driver_bug_workarounds |= SH_INIT_GL_POSITION; 2813 driver_bug_workarounds |= SH_INIT_GL_POSITION;
2814 if (workarounds().unfold_short_circuit_as_ternary_operation) 2814 if (workarounds().unfold_short_circuit_as_ternary_operation)
2815 driver_bug_workarounds |= SH_UNFOLD_SHORT_CIRCUIT; 2815 driver_bug_workarounds |= SH_UNFOLD_SHORT_CIRCUIT;
2816 if (workarounds().init_varyings_without_static_use) 2816 if (workarounds().init_varyings_without_static_use)
2817 driver_bug_workarounds |= SH_INIT_VARYINGS_WITHOUT_STATIC_USE; 2817 driver_bug_workarounds |= SH_INIT_VARYINGS_WITHOUT_STATIC_USE;
2818 if (workarounds().unroll_for_loop_with_sampler_array_index) 2818 if (workarounds().unroll_for_loop_with_sampler_array_index)
2819 driver_bug_workarounds |= SH_UNROLL_FOR_LOOP_WITH_SAMPLER_ARRAY_INDEX; 2819 driver_bug_workarounds |= SH_UNROLL_FOR_LOOP_WITH_SAMPLER_ARRAY_INDEX;
2820 if (workarounds().scalarize_vec_and_mat_constructor_args) 2820 if (workarounds().scalarize_vec_and_mat_constructor_args)
2821 driver_bug_workarounds |= SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS; 2821 driver_bug_workarounds |= SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS;
2822 if (workarounds().regenerate_struct_names)
2823 driver_bug_workarounds |= SH_REGENERATE_STRUCT_NAMES;
2822 2824
2823 vertex_translator_ = shader_translator_cache()->GetTranslator( 2825 vertex_translator_ = shader_translator_cache()->GetTranslator(
2824 #if (ANGLE_SH_VERSION >= 126) 2826 #if (ANGLE_SH_VERSION >= 126)
2825 GL_VERTEX_SHADER, 2827 GL_VERTEX_SHADER,
2826 #else 2828 #else
2827 SH_VERTEX_SHADER, 2829 SH_VERTEX_SHADER,
2828 #endif 2830 #endif
2829 shader_spec, 2831 shader_spec,
2830 &resources, 2832 &resources,
2831 implementation_type, 2833 implementation_type,
(...skipping 8123 matching lines...) Expand 10 before | Expand all | Expand 10 after
10955 } 10957 }
10956 } 10958 }
10957 10959
10958 // Include the auto-generated part of this file. We split this because it means 10960 // Include the auto-generated part of this file. We split this because it means
10959 // we can easily edit the non-auto generated parts right here in this file 10961 // we can easily edit the non-auto generated parts right here in this file
10960 // instead of having to edit some template or the code generator. 10962 // instead of having to edit some template or the code generator.
10961 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10963 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10962 10964
10963 } // namespace gles2 10965 } // namespace gles2
10964 } // namespace gpu 10966 } // 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