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

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

Issue 153173002: Add a gpu driver bug workaround to count in all varyings in packing check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 10 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/command_buffer/service/gles2_cmd_decoder_unittest_1.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 5399 matching lines...) Expand 10 before | Expand all | Expand 10 after
5410 LogClientServiceForInfo(program, program_id, "glLinkProgram"); 5410 LogClientServiceForInfo(program, program_id, "glLinkProgram");
5411 ShaderTranslator* vertex_translator = NULL; 5411 ShaderTranslator* vertex_translator = NULL;
5412 ShaderTranslator* fragment_translator = NULL; 5412 ShaderTranslator* fragment_translator = NULL;
5413 if (use_shader_translator_) { 5413 if (use_shader_translator_) {
5414 vertex_translator = vertex_translator_.get(); 5414 vertex_translator = vertex_translator_.get();
5415 fragment_translator = fragment_translator_.get(); 5415 fragment_translator = fragment_translator_.get();
5416 } 5416 }
5417 if (program->Link(shader_manager(), 5417 if (program->Link(shader_manager(),
5418 vertex_translator, 5418 vertex_translator,
5419 fragment_translator, 5419 fragment_translator,
5420 workarounds().count_all_in_varyings_packing ?
5421 Program::kCountAll : Program::kCountOnlyStaticallyUsed,
5420 shader_cache_callback_)) { 5422 shader_cache_callback_)) {
5421 if (program == state_.current_program.get()) { 5423 if (program == state_.current_program.get()) {
5422 if (workarounds().use_current_program_after_successful_link) 5424 if (workarounds().use_current_program_after_successful_link)
5423 glUseProgram(program->service_id()); 5425 glUseProgram(program->service_id());
5424 if (workarounds().clear_uniforms_before_first_program_use) 5426 if (workarounds().clear_uniforms_before_first_program_use)
5425 program_manager()->ClearUniforms(program); 5427 program_manager()->ClearUniforms(program);
5426 } 5428 }
5427 } 5429 }
5428 }; 5430 };
5429 5431
(...skipping 5091 matching lines...) Expand 10 before | Expand all | Expand 10 after
10521 DoDidUseTexImageIfNeeded(texture, texture->target()); 10523 DoDidUseTexImageIfNeeded(texture, texture->target());
10522 } 10524 }
10523 10525
10524 // Include the auto-generated part of this file. We split this because it means 10526 // Include the auto-generated part of this file. We split this because it means
10525 // we can easily edit the non-auto generated parts right here in this file 10527 // we can easily edit the non-auto generated parts right here in this file
10526 // instead of having to edit some template or the code generator. 10528 // instead of having to edit some template or the code generator.
10527 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10529 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10528 10530
10529 } // namespace gles2 10531 } // namespace gles2
10530 } // namespace gpu 10532 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698