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

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

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: rebase and move GLWorkarounds to a member of GLContext 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_context.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 8a114b4fe05ffa443364cd19e0957ca2d92673fc..0bb228ddacc02c91a7b4523ecaefa654ff8d67f1 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -17,6 +17,7 @@
#include "gpu/command_buffer/service/texture_definition.h"
#include "gpu/config/gpu_switches.h"
#include "ui/gl/gl_bindings.h"
+#include "ui/gl/gl_context.h"
#include "ui/gl/gl_fence.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_switches.h"
@@ -557,6 +558,13 @@ void FeatureInfo::InitializeFeatures() {
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT);
}
+ // Pass some workarounds to ui/gl so that we can apply it in gl api.
+ gl::GLWorkarounds gl_workarounds;
+ if (workarounds_.clear_to_zero_or_one_broken) {
+ gl_workarounds.clear_to_zero_or_one_broken = true;
+ }
+ gl::GLContext::SetGLWorkarounds(gl_workarounds);
+
// Check if we should support GL_OES_packed_depth_stencil and/or
// GL_GOOGLE_depth_texture / GL_CHROMIUM_depth_texture.
//
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list.json » ('j') | ui/gl/gl_context.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698