Commit 54dfb62c by Jamie Madill Committed by Commit Bot

Make "force context check" an optional GN flag.

Previously it was enabled by default in every build that includes D3D11. This would impact CPU overhead in Chrome and other targets that don't need this feature. Bug: angleproject:5828 Change-Id: Ic9d700847c72978540b66fdaf7a62f959779f2e6 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2809855Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarDoug Horn <doughorn@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent b604f843
...@@ -42,6 +42,9 @@ declare_args() { ...@@ -42,6 +42,9 @@ declare_args() {
# Enables non-conformant extensions and features # Enables non-conformant extensions and features
angle_expose_non_conformant_extensions_and_versions = false angle_expose_non_conformant_extensions_and_versions = false
# Optional feature that forces dirty state whenever we use a new context regardless of thread.
angle_force_context_check_every_call = false
} }
if (angle_build_all) { if (angle_build_all) {
...@@ -646,11 +649,14 @@ config("angle_backend_config") { ...@@ -646,11 +649,14 @@ config("angle_backend_config") {
defines += [ "ANGLE_DELEGATE_WORKERS" ] defines += [ "ANGLE_DELEGATE_WORKERS" ]
} }
if (angle_force_context_check_every_call) {
defines += [ "ANGLE_FORCE_CONTEXT_CHECK_EVERY_CALL=1" ]
}
configs = [] configs = []
if (angle_enable_d3d11) { if (angle_enable_d3d11) {
configs += [ "src/libANGLE/renderer/d3d:angle_d3d11_backend_config" ] configs += [ "src/libANGLE/renderer/d3d:angle_d3d11_backend_config" ]
defines += [ "ANGLE_FORCE_CONTEXT_CHECK_EVERY_CALL=1" ]
} }
if (angle_enable_d3d9) { if (angle_enable_d3d9) {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
3916 GLES : dEQP-EGL.functional.multithread.* = SKIP 3916 GLES : dEQP-EGL.functional.multithread.* = SKIP
3916 GLES : dEQP-EGL.functional.render.multi_thread.* = SKIP 3916 GLES : dEQP-EGL.functional.render.multi_thread.* = SKIP
3916 GLES : dEQP-EGL.functional.color_clears.multi_thread.* = SKIP 3916 GLES : dEQP-EGL.functional.color_clears.multi_thread.* = SKIP
3916 D3D11 : dEQP-EGL.functional.sharing.gles2.multithread.* = SKIP
3916 D3D9 : dEQP-EGL.functional.sharing.gles2.multithread.* = SKIP 3916 D3D9 : dEQP-EGL.functional.sharing.gles2.multithread.* = SKIP
3916 D3D9 : dEQP-EGL.functional.multithread.* = SKIP 3916 D3D9 : dEQP-EGL.functional.multithread.* = SKIP
3916 D3D9 : dEQP-EGL.functional.render.multi_thread.* = SKIP 3916 D3D9 : dEQP-EGL.functional.render.multi_thread.* = SKIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment