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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: move gl_workarounds_ to a member of RealGLApi Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list.json » ('j') | ui/gl/gl_gl_api_implementation.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index a9f9b685813ec6ac46097a172b47474ea7a67857..3a7fbf46d7d50a2886dcc12502c92832468a87ca 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -3183,6 +3183,13 @@ bool GLES2DecoderImpl::Initialize(
// Create GPU Tracer for timing values.
gpu_tracer_.reset(new GPUTracer(this));
+ // Pass some workarounds to GLContext so that we can apply them in RealGLApi.
+ gl::GLWorkarounds gl_workarounds;
+ if (workarounds().clear_to_zero_or_one_broken) {
+ gl_workarounds.clear_to_zero_or_one_broken = true;
+ }
+ GetGLContext()->SetGLWorkarounds(gl_workarounds);
+
if (workarounds().disable_timestamp_queries) {
// Forcing time elapsed query for any GPU Timing Client forces it for all
// clients in the context.
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list.json » ('j') | ui/gl/gl_gl_api_implementation.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698