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

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 workarounds to gl_context 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') | gpu/config/gpu_driver_bug_workaround_type.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..e1444caa4b077a565a265b1c557932f9f60c6759 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 glWorkarounds;
Zhenyao Mo 2017/06/20 21:34:17 gl_workarounds
jiajia.qin 2017/06/21 02:47:22 Done.
+ if (workarounds_.clear_to_boundary_values_is_broken) {
+ glWorkarounds.clearToBoundaryValuesIsBroken = true;
+ }
+ gl::SetGLWorkarounds(glWorkarounds);
+
// 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') | gpu/config/gpu_driver_bug_workaround_type.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698