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

Issue 2680423002: Introducing 2 usages for SwiftShader (Closed)

Created:
3 years, 10 months ago by sugoi1
Modified:
3 years, 10 months ago
CC:
chromium-reviews, ozone-reviews_chromium.org, jam, darin-cc_chromium.org, kalyank, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introducing a second usage for SwiftShader In order to use SwiftShader to run layout tests, SwiftShader must be usable the same way Mesa currently is: as a full OpenGL implementation. In order to do that, a few things were modified: - A new flag was added: gl::kGLImplementationSwiftShaderForWebGLName, which is "--use-gl=swiftshader-webgl" - The current way of using SwiftShader in Chromium is to only use SwiftShader for WebGL. To reflect that, gl::kGLImplementationSwiftShaderName was renamed to gl::kGLImplementationSwiftShaderForWebGLName. All existing occurences of the "swiftshader" string in the code were also replaced with gl::kGLImplementationSwiftShaderForWebGLName. - The old flag gl::kGLImplementationSwiftShaderName, usable by setting the "--use-gl=swiftshader" flag, has a new meaning, which is to use SwiftShader as the OpenGL ES driver for all of Chromium, not only for WebGL. This will allow SwiftShader to replace Mesa in the layout tests. Note: Although the new modes were added, no changes to the layout tests will happen with this cl, but it does allow Chromium to use SwiftShader as the OpenGL ES driver on Windows and Linux. BUG=630728 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2680423002 Cr-Commit-Position: refs/heads/master@{#450059} Committed: https://chromium.googlesource.com/chromium/src/+/2ad66a7079e608873f2e1c8a60bf316c76bbc156

Patch Set 1 #

Patch Set 2 : Fixed Typo #

Patch Set 3 : Added missing change to GpuDataManagerImplPrivate #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -19 lines) Patch
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/config/gpu_info_collector_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_context.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_implementation.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_implementation.cc View 1 2 1 chunk +6 lines, -6 lines 1 comment Download
M ui/gl/gl_surface_egl.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_switches.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/init/gl_factory.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ui/gl/init/gl_factory_win.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/init/gl_factory_x11.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/init/gl_initializer_win.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M ui/gl/init/gl_initializer_x11.cc View 4 chunks +14 lines, -0 lines 0 comments Download
M ui/gl/test/egl_initialization_displays_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (18 generated)
sugoi1
I've managed to run Layout Tests locally with SwiftShader on both Windows and Linux. This ...
3 years, 10 months ago (2017-02-08 22:47:43 UTC) #6
jbauman
You also need to update content/browser/gpu/gpu_data_manager_impl_private.cc to use swiftshader-webgl
3 years, 10 months ago (2017-02-10 00:06:30 UTC) #13
sugoi1
Thanks John, good catch. I had somehow missed that one in the code search results. ...
3 years, 10 months ago (2017-02-10 16:39:38 UTC) #14
Ken Russell (switch to Gerrit)
Good work Alexis. LGTM as far as I can tell from code examination. John's review ...
3 years, 10 months ago (2017-02-10 22:10:48 UTC) #19
sugoi1
On 2017/02/10 22:10:48, Ken Russell wrote: > Good work Alexis. LGTM as far as I ...
3 years, 10 months ago (2017-02-10 22:20:40 UTC) #20
Ken Russell (switch to Gerrit)
On 2017/02/10 22:20:40, sugoi1 wrote: > On 2017/02/10 22:10:48, Ken Russell wrote: > > Good ...
3 years, 10 months ago (2017-02-10 22:26:16 UTC) #21
jbauman
lgtm
3 years, 10 months ago (2017-02-10 22:26:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2680423002/40001
3 years, 10 months ago (2017-02-13 18:25:15 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 20:10:25 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2ad66a7079e608873f2e1c8a60bf...

Powered by Google App Engine
This is Rietveld 408576698