ANGLE Orientation

A basic guide to get up and running fixing bugs and performance issues in ANGLE.

First ANGLE Compile

Windows

Linux

  • Download and install Chromium's depot_tools for building ANGLE.

  • Ensure you add depot_tools to your bashrc as in the wiki link above.

  • Follow the steps on the ANGLE wiki to setup ANGLE's build.

  • Building should work at this point! Follow the steps on the Wiki.

  • Try running angle_end2end_tests, angle_unittests or a sample program.

Setting up the drawElements testing suite

  • Cherry is the UI for viewing test results. ANGLE checks out a copy in <angledir>/third_party/cherry.

  • Follow the instructions in the installation README to get it running. On Windows, use 64-bit.

  • Read up on testing with dEQP on the ANGLE Wiki.

  • Try running angle_deqp_gles2_tests_no_gtest with the flag --deqp-case=dEQP-GLES2.functional.negative_api.* and load a test report in Cherry.

  • To use Cherry, browse to http://localhost:8080/#/results and click ‘Import existing batch’, loading TestResults.qpa. Look for the qpa file in the current working directory, or <angledir>/src/tests if you ran the tests from Visual Studio.

  • Note: we only use Cherry for viewing test output, not running the tests. On start, you may see some runtime messages about unable to load case lists. These are safe to ignore. If you didn't load the results URL directly, click the “Results” tab to find the Import button.

Profiling

  • You can use scripts/perf_test_runner.py to run any target of ./angle_perftests (see script source for details).

With Visual Studio

  • In Visual Studio 2017, look under Debug/Profiler/Performance Explorer/New Performance Session. Right-click “Targets” and add angle_perftests as a Target Project.

  • Run angle_perftests with the flag --gtest_filter=DrawCallPerfBenchmark.Run/d3d11_null for D3D11, .../d3d9_null for D3D9, .../gl_null for OpenGL and .../vulkan_null for Vulkan.

  • Make sure you close all open instances of Chrome, they use a lot of background CPU and GPU. In fact, close every process and application you can.

Profiling with Visual Studio + Chrome

  • Install Chrome Canary.

  • Canary's install dir is usually %APPDATA%/Local/Google/Chrome SxS/Application

  • Build ANGLE x64, Release, and run ‘python scripts/update_chrome_angle.py’ to replace Canary's ANGLE with your custom ANGLE. (Note: Canary must be closed)

  • Start Canary with --gpu-startup-dialog --disable-gpu-sandbox, wait for the dialog.

  • In Visual Studio, under Debug/Profiler, choose attach to process.

  • Attach to the Chrome GPU process, then immediately pause profiling.

  • IMPORTANT: Verify ANGLE details are correct in about:gpu.

  • In Canary, start your benchmark, then resume profiling, and exit when done. The report will load automatically.

Bookmark the latest Khronos specs

These specs can be found in the OpenGL Registry and the Vulkan Docs repositories as well.

Join Groups and Chats

  • Join the #angle channel in chromium.slack.com.

For Googlers

  • Join angle-team@ for access to many important emails and shared documents.

  • We have a Hangouts Chat channel. Ask for an invite.