From ed27437d3a0a58534dd6cb877b18d2d60d1d21fe Mon Sep 17 00:00:00 2001 From: ericrk Date: Thu, 1 Oct 2015 15:18:54 -0700 Subject: Blacklist MSAA for GPU Raster on Intel GPUs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Intel GPUs have unacceptable performance for GPU raster when MSAA is enabled. This has been tested on recent Intel GPUs on CrOS, Mac, and Windows. Given this we’re adding a workaround for Intel GPUs which will disable MSAA for GPU raster. We don’t want to impact WebGL, so this workaround specifically targets non-WebGL contexts. I’ve updated FeatureInfo’s Initialize function to accept the context type, which allows us to customize features based on webgl/non-webgl. I’ve also changed the secondary version of Initialize, which takes no arguments, to be InitializeForTesting, as this function is only called in tests. BUG=527565 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1374043005 Cr-Commit-Position: refs/heads/master@{#351904} --- gpu/command_buffer/tests/gl_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpu/command_buffer/tests/gl_unittest.cc') diff --git a/gpu/command_buffer/tests/gl_unittest.cc b/gpu/command_buffer/tests/gl_unittest.cc index 165d3b1..70d35df 100644 --- a/gpu/command_buffer/tests/gl_unittest.cc +++ b/gpu/command_buffer/tests/gl_unittest.cc @@ -91,7 +91,7 @@ TEST_F(GLTest, SimpleShader) { TEST_F(GLTest, FeatureFlagsMatchCapabilities) { scoped_refptr features = new gles2::FeatureInfo; - EXPECT_TRUE(features->Initialize()); + EXPECT_TRUE(features->InitializeForTesting()); const auto& caps = gl_.GetCapabilities(); const auto& flags = features->feature_flags(); EXPECT_EQ(caps.egl_image_external, flags.oes_egl_image_external); -- cgit v1.1