A conformant OpenGL ES implementation for Windows, Mac and Linux.
Перейти к файлу
Shahbaz Youssefi 27c89d2b5c Vulkan: fix BufferVk::map() synchronization
4398b2b6a2 made finishToSerial() in
BufferVk::map() conditional to whether the serial is in use to work
around a performance regression.  Notes:

- Prior to 087f1384f2, finishToSerial
  already did that, but that check was inadvertently removed.
- finishToSerial waits for the smallest serial that's bigger than or
  equal to the requested serial.
- The flush() call in BufferVk::map() was conditional to whether the
  serial is in use, but it really meant to check whether the buffer has
  pending commands in the graph.

The end result is that there was an unnecessary flush in BufferVk::map()
if we had to wait for a previous serial to finish.

This change makes the flush conditional to whether the buffer has
pending commands in the graph, and the finishToSerial call to whether
the serial is not yet finished.

Bug: angleproject:3994
Change-Id: Idca436ef2439bcc8c59396a07b2591c1dfadd669
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1932341
Reviewed-by: Brandon Schade <b.schade@samsung.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
2019-12-07 05:32:04 +00:00
android Remove build_apk_secondary_abi from gn files 2019-12-04 21:52:52 +00:00
build_overrides GN: Make X11 optional, based on a user-defined variable. 2019-11-19 13:02:24 +00:00
doc Automatically call flex/bison if necessary 2019-12-03 19:29:42 +00:00
extensions Add ability to disable all ANGLE features 2019-11-20 17:01:23 +00:00
gni Revert "Re-land "Add new test runner harness."" 2019-12-06 15:09:04 +00:00
include Vulkan: EXT_gpu_shader5 support: precise 2019-12-05 20:20:07 +00:00
infra Link to the autoroller configuration directory in the wrangling doc. 2019-12-03 16:46:55 +00:00
samples gn: Minor improvements. 2019-12-04 21:33:12 +00:00
scripts Vulkan: EXT_gpu_shader5 support: precise 2019-12-05 20:20:07 +00:00
src Vulkan: fix BufferVk::map() synchronization 2019-12-07 05:32:04 +00:00
third_party Remove an unused .gn file. 2019-12-03 16:33:56 +00:00
tools Automatically call flex/bison if necessary 2019-12-03 19:29:42 +00:00
util Revert "Re-land "Add new test runner harness."" 2019-12-06 15:09:04 +00:00
.clang-format Add script to apply clang-format on all sources 2019-07-19 20:10:28 +00:00
.gitattributes Automatically call flex/bison if necessary 2019-12-03 19:29:42 +00:00
.gitignore Ignore .git_cl_description_backup 2019-11-29 16:08:32 +00:00
.gn angle: Stop setting secondary_source. 2019-05-13 13:42:57 +00:00
.style.yapf Format all of ANGLE's python code. 2019-05-06 18:56:09 +00:00
.yapfignore Add .yapfignore file 2019-10-14 17:57:09 +00:00
AUTHORS GN: Make X11 optional, based on a user-defined variable. 2019-11-19 13:02:24 +00:00
BUILD.gn Add /APPCONTAINER linker flag to shared libraries in UWP builds. 2019-12-06 15:05:42 +00:00
CONTRIBUTORS Vulkan: Add an end2end test to log GLES capabilities 2019-11-21 00:27:22 +00:00
DEPS Roll third_party/SwiftShader bbd0694f9ab2..b9f03f47d5f5 (18 commits) 2019-12-06 07:52:41 +00:00
LICENSE Update license and readme for use downstream 2018-03-27 20:53:53 +00:00
OWNERS Add COMPONENT and TEAM information in OWNERS file 2019-10-09 00:27:15 +00:00
PRESUBMIT.py Update codegen presubmit error. 2019-11-25 20:31:15 +00:00
README.chromium Update license and readme for use downstream 2018-03-27 20:53:53 +00:00
README.md Add Metal progress to README 2019-11-11 13:48:50 +00:00
WATCHLISTS Add watchlist file for ANGLE. 2019-02-28 15:47:54 +00:00
additional_readme_paths.json Use xxHash for faster hash map lookups. 2018-11-20 16:37:07 +00:00
codereview.settings Use "full" git cl format by default. 2019-10-24 23:14:12 +00:00
dotfile_settings.gni Remove Vulkan repos from exec script whitelist. 2019-10-20 16:26:45 +00:00

README.md

ANGLE - Almost Native Graphics Layer Engine

The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support.

Level of OpenGL ES support via backing renderers

Direct3D 9 Direct3D 11 Desktop GL GL ES Vulkan Metal
OpenGL ES 2.0 complete complete complete complete complete in progress
OpenGL ES 3.0 complete complete complete in progress
OpenGL ES 3.1 in progress complete complete in progress
OpenGL ES 3.2 planned planned planned

Platform support via backing renderers

Direct3D 9 Direct3D 11 Desktop GL GL ES Vulkan Metal
Windows complete complete complete complete complete
Linux complete complete
Mac OS X complete in progress
iOS planned
Chrome OS complete planned
Android complete complete
Fuchsia in progress

ANGLE v1.0.772 was certified compliant by passing the ES 2.0.3 conformance tests in October 2011. ANGLE also provides an implementation of the EGL 1.4 specification.

ANGLE is used as the default WebGL backend for both Google Chrome and Mozilla Firefox on Windows platforms. Chrome uses ANGLE for all graphics rendering on Windows, including the accelerated Canvas2D implementation and the Native Client sandbox environment.

Portions of the ANGLE shader compiler are used as a shader validator and translator by WebGL implementations across multiple platforms. It is used on Mac OS X, Linux, and in mobile variants of the browsers. Having one shader validator helps to ensure that a consistent set of GLSL ES shaders are accepted across browsers and platforms. The shader translator can be used to translate shaders to other shading languages, and to optionally apply shader modifications to work around bugs or quirks in the native graphics drivers. The translator targets Desktop GLSL, Direct3D HLSL, and even ESSL for native GLES2 platforms.

Sources

ANGLE repository is hosted by Chromium project and can be browsed online or cloned with

git clone https://chromium.googlesource.com/angle/angle

Building

View the Dev setup instructions.

Contributing