0
Files
src/docs/gpu/swiftshader.md
Alexis Hetu 8c54b0b7e3 Remove legacy SwiftShader GL from documentation
Legacy SwiftShader GL is deprecated, so remove it from existing
documentation, so that only SwANGLE related documentation remains.

Bug: chromium:1060139
Change-Id: I1a59d7b4a57f80cbe627df0a77430450296df607
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3452836
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Alexis Hétu <sugoi@google.com>
Cr-Commit-Position: refs/heads/main@{#969936}
2022-02-11 14:35:59 +00:00

1.3 KiB

Using Chromium with SwiftShader

SwiftShader is an open-source high-performance implementation of the Vulkan and OpenGL ES graphics APIs which runs purely on the CPU. Thus no graphics processor (GPU) is required for advanced (3D) graphics.

Chromium uses SwiftShader in two different ways:

  1. As the OpenGL ES driver

When Chromium uses SwiftShader as the OpenGL ES driver, Chromium behaves as if it was running a on regular GPU, while actually running on SwiftShader. This allows Chromium to exercise hardware only code paths on GPU-less bots.

  1. As the WebGL fallback

When Chromium uses SwiftShader as the WebGL fallback, Chromium runs in all software mode and only uses SwiftShader to render WebGL content.

Relevant Chromium command line switches

When running the chrome executable from the command line, SwiftShader can be enabled using the following Switches:

  1. As the OpenGL ES driver, SwANGLE (ANGLE + SwiftShader Vulkan)

--use-gl=angle --use-angle=swiftshader

  1. As the WebGL fallback, SwANGLE (ANGLE + SwiftShader Vulkan)

--use-gl=angle --use-angle=swiftshader-webgl

  1. As the Vulkan driver (requires the enable_swiftshader_vulkan feature)

--use-vulkan=swiftshader