Commit Graph
17680 Commits
Author SHA1 Message Date
Peng Huang cd157aae58 Revert "Use STL container for vulkan memory allocator"
This reverts commit cc516f9701.

Reason for revert:
  This is not the right way to use STL containers in VMA.
  See [1] for detail.
  [1] https://chromium-review.googlesource.com/c/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/+/3381940

Original change's description:
> Use STL container for vulkan memory allocator
>
> There is a crash related to VMA containers, so switch to STL
> containers to see if it can workaround the issue.
>
> Bug: chromium:1266412
> Change-Id: I8416e4b4a27588ac2d710a4ef7600cd91b080535
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3327744
> Reviewed-by: Jamie Madill <[email protected]>
> Commit-Queue: Peng Huang <[email protected]>

Bug: chromium:1266412
Change-Id: Ib020c824a3576489c728503a2ced68ca772d4065
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3381979
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Peng Huang <[email protected]>
2022-01-12 16:40:00 +00:00
angle-autoroll 89467fa564 Roll Chromium from 597c376626be to 3d4921afbcfd (999 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/597c376626be..3d4921afbcfd

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Changed dependencies
* build: https://chromium.googlesource.com/chromium/src/build.git/+log/12badc1f9a..e73fdb69e8
* buildtools/linux64: git_revision:f1b1412521b41e47118b29863224171e434a27a2..git_revision:80a40b07305373617eba2d5878d353532af77da3
* buildtools/mac: git_revision:f1b1412521b41e47118b29863224171e434a27a2..git_revision:80a40b07305373617eba2d5878d353532af77da3
* buildtools/third_party/libc++abi/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxxabi.git/+log/a0ace9923e..8829496cf6
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/58d1647360..834e4a3c86
* buildtools/win: git_revision:f1b1412521b41e47118b29863224171e434a27a2..git_revision:80a40b07305373617eba2d5878d353532af77da3
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/85cca6c8d9..d97420b2b6
* third_party/abseil-cpp: https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp/+log/edde12c2d3..9ef57f6031
* third_party/android_build_tools/aapt2: ZHiDoiurxMLwajQq_CwBH9zaDW5xwYWYGbedxIslTm8C..0yR8wK_fSMgdVKwnx4nRPi-amaLV7Kcr4Os6mg_DGI4C
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..486f67f3ec
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/d3cc7ad85e..9fa0cb7230
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/6e330f7e33..bfa8372dea
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/3b1084819d..ad0c23f6d2
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/b7dc143ef9..178ab2e018
Clang version changed llvmorg-14-init-12719-gc4b45eeb:llvmorg-14-init-14241-ged3a4a49
Details: https://chromium.googlesource.com/chromium/src/tools/clang/+/6e330f7e3331c542eaf8eea1008b8b85449a2bc5..bfa8372deaca7059d7f1d79b29df50b5c0c5f05a/scripts/update.py

Bug: angleproject:6884
Tbr: [email protected]
Change-Id: I96f32711eb0f95a7696c8cad19312ae91efc0b0d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3382569
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-01-12 09:28:50 +00:00
Mohan Maiya d4c8209b3e Fix validation of copyImageSubData related to texture completeness
Fixed an edge case in validation code where we were not properly
ignoring format rules for texture completeness as required for
copyImageSubData by the ES 3.2 specification

Bug: angleproject:5363
Tests: KHR-GLES32.core.copy_image.r32*_texture
Change-Id: Ibf8a6f4708e2135f0eb6f4ba58d4ce413f11ce5b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3379224
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
2022-01-12 01:20:19 +00:00
Kyle Piddington 4a819ee261 Update code generation script to work with specified generators
Add --generator flag to run a single generator

Bug: angleproject:6780
Change-Id: Icfa827327aed96dcb69107f3c63ec13090a76111
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331673
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Kyle Piddington <[email protected]>
2022-01-12 00:01:20 +00:00
Mohan Maiya 96fd9b72d0 Fix validation of glCompressedTexImage3D
GLES 3.2 spec allows for glCompressedTexImage3D to accept
TEXTURE_CUBE_MAP_ARRAY as a target as well. Account for this
during validation.

Bug: angleproject:5393
Tests: KHR-GLES32.core.texture_cube_map_array.etc2_texture
Change-Id: Ieb75e63021bea2ea6f8fcc68bd6b666d0bd7f5dc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3379225
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
2022-01-11 23:43:09 +00:00
Lingfeng Yang 926b43e751 Reland: Frontend: separate lock in swap prep
Swapchain-based backends like Vulkan might block a lot in
vkAcquireNextImageKHR, which is bad for overall fast progress if we also
hold the global EGL lock there.

This CL starts to split the global EGL lock. We release the EGL lock
when performing vkAcquireNextImageKHR, and only maintain a lock for
surfaces.

This is done via a new custom entry point, EGL_PrepareSwapBuffers, so
that we can control how the global lock is used throughout the entire
call.

Bug: angleproject:6851
Change-Id: I095cd8b3bdbb13c842cab0a46148e2122582cdfd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373426
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Lingfeng Yang <[email protected]>
2022-01-11 22:23:19 +00:00
Mohan Maiya 2d1051778c Enable a few features for Samsung
Check for Samsung vendorID and enable a few features.

Bug: angleproject:5111
Change-Id: I17a93bfb9a094b80d185eb3d2a08ed00f528a30b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3379223
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
2022-01-11 21:46:49 +00:00
Roman Lavrov 345cdcb0ff Rename features for consistency.
supports_custom_border_color -> supportsCustomBorderColor
supports_protected_memory -> supportsProtectedMemory

Also drop EXT from the end of the variable name as other variables don't
have that.

Bug: angleproject:6731
Change-Id: I60b20d84387bccbca0c4c1cbc7e341c1f5e8f0ba
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3378827
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
2022-01-11 21:21:46 +00:00
Tim Van Patten b0e15ee48b Decide GL_KHR_parallel_shader_compile in backends
GL_KHR_parallel_shader_compile was previously being enabled
unconditionally in the front end. However, some backends (Vulkan)
perform worse with parallel shader compilation. This CL moves the
decision of enabling GL_KHR_parallel_shader_compile to the backends.

To support single-threaded shader compilation without affecting the
generic worker thread pool, Context::mSingleThreadPool is added to own
the single-threaded WorkerThreadPool and can be returned by the new
function Context::getShaderCompileThreadPool(). Otherwise, if the
extension is enabled, the (renamed) Context::mMultiThreadPool is
returned.

Bug: angleproject:6748
Change-Id: Ic8d3a183f397608f3002a05480deb976dfe44792
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3360337
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2022-01-11 19:18:59 +00:00
Yuxin Hu a026d05360 Add support for subgroupSize of 16 in Debug Overlay Module
The subgroupSize on some Android devices is 16, which is not
supported by current OverlayCull and OverlayDraw compute
shaders. This change adds support for subgroupSize of 16.

This change also removes the subgroupBallot and subgroupArithmetic
paths in OverlayCull compute shader.
These two paths were added by Shabi as an experiment,
and he suggested to remove them for easier code maintenance purposes.

Bug: angleproject:6806
Change-Id: I5ce68cb18fbf3472c987d811c89f065cb8581858
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3352865
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Yuxin Hu <[email protected]>
2022-01-11 18:02:50 +00:00
Geoff Lang f180ecc967 Supress TransformFeedbackPausedDrawThenResume on Mac AMD
Mac AMD OpenGL fails this test the same way as
TransformFeedbackTest.TransformFeedbackQueryPausedDrawThenResume

Bug: angleproject:6643
Change-Id: Ifbae1751deeaddbe64fa1ac284e0fa04e02c666f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3380009
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2022-01-11 16:12:59 +00:00
angle-autoroll 5ec02c8f4a Roll SwiftShader from b57a3aaee927 to cd848cd695a4 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/b57a3aaee927..cd848cd695a4

2022-01-10 [email protected] Optimize mirror addressing mode

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in SwiftShader: https://bugs.chromium.org/p/swiftshader/issues/entry
To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I0e54064ef9de5610987cd9e5979b02fa0863a69c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3380311
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-01-11 12:48:27 +00:00
angle-autoroll 7f8e7c38ec Roll vulkan-deps from 328da0f26e8e to d891854a594a (9 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/328da0f26e8e..d891854a594a

Changed dependencies:
* glslang: https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang.git/+log/c0a322f5f0..57e25195eb
* spirv-tools: https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/c5ee1bc7bd..05c839ca01
* vulkan-loader: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Loader.git/+log/f5d16bf89e..a72d5bc3eb
* vulkan-validation-layers: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/e406ff1473..d18a6f03cf

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-deps-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I4cda9ad2e5dc7d69a7d0e84d3848b564a0467b27
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3380312
Bot-Commit: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2022-01-11 11:45:24 +00:00
John Cunningham 0b02a592fe Metal: Generated Metal shaders do not compile offline
Add an explicit include for the Metal stdlib to fix missing
symbol errors

Bug: angleproject:6886
Change-Id: Ie84ef1c16f964387b63e36490d7e9abc0c1763f2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3379238
Reviewed-by: Kyle Piddington <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Kenneth Russell <[email protected]>
2022-01-11 03:13:14 +00:00
Gregg Tavares 6a25583333 Metal: Fix transform feedback issue
The issue is if you issue 2 draw commands back to back,
Metal partially ignores the 2nd.

Bug: angleproject:6884
Change-Id: I702335ca06828bed1f553f1f5563ddc99f00bc99
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373736
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Kyle Piddington <[email protected]>
Commit-Queue: Gregg Tavares <[email protected]>
2022-01-10 22:31:03 +00:00
Mohan Maiya 37cde9e994 Update GLES31 expectations file
The commit f9dbd4efb3 fixed a validation bug related to
framebuffer and texture buffers but missed updating the
expectations file. Remove skip for related test.

Bug: angleproject:5579
Tests: dEQP-GLES31.functional.debug.negative_coverage.get_error.buffer.framebuffer_texture
Change-Id: Id8807479e63d886b85512a88eaaeac93488e0545
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3377763
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
2022-01-10 21:10:27 +00:00
Mohan Maiya e38dab0aac Add missing implementation for glGetnUniformuiv()
GL_KHR_robustness became core in GLES 3.2 and added
glGetnUniformuiv() function in gles_3_2 entry points but this
function was missing implementation in Context.cpp. Also fixes
ES32 validation for glGetnUniform*v

Bug: angleproject:6593
Tests: KHR-NoContext.es32.robustness.getnuniform
Change-Id: Ic26190e59d448d93ae9e2e0d2a7faff14c3776f8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373436
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
2022-01-10 20:53:16 +00:00
Jonah Ryan-Davis 74e03b9af4 Expose the registryID of GPUs on Mac via SystemInfo
As part of a new extension, ANGLE_platform_angle_device_id,
GPU selection on Mac will depend on the registry ID of each GPU.
These Ids must be listed in SystemInfo for Chrome to select from.

Bug: angleproject:6143
Change-Id: I7ee4a796d2cb26138893dc068a60cac355fe7ba9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3370661
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Jonah Ryan-Davis <[email protected]>
2022-01-10 18:57:25 +00:00
Shahbaz Youssefi 9d11a341c6 Vulkan: Fix Vulkan SCB vs multiple subpasses
vkCmdNextSubpass must be called on the primary command buffer, so the
render pass command buffers need to be split on subpass boundaries.
This is only done when using Vulkan secondary command buffers.

Bug: angleproject:6811
Change-Id: I087fff305c757c78e87bfde4410e7de6bd1a6ba6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3344774
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2022-01-10 18:15:26 +00:00
angle-autoroll b90bcb9c82 Roll vulkan-deps from 57e7495dc76d to 328da0f26e8e (4 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/57e7495dc76d..328da0f26e8e

Changed dependencies:
* glslang: https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang.git/+log/17232d21d7..c0a322f5f0
* spirv-tools: https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/75e53b9f68..c5ee1bc7bd
* vulkan-loader: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Loader.git/+log/b9936f2b7a..f5d16bf89e
* vulkan-validation-layers: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/bdc140e72f..e406ff1473

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-deps-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I6f56617a51be0f4759f35be18cbed32714dda48a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3377102
Bot-Commit: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2022-01-10 11:38:22 +00:00
angle-autoroll 9f1dc3e993 Roll Chromium from b91f3880e3ec to 597c376626be (567 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/b91f3880e3ec..597c376626be

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Changed dependencies
* build: https://chromium.googlesource.com/chromium/src/build.git/+log/653610b787..12badc1f9a
* buildtools/linux64: git_revision:54284c12607e2818293157cd76d29d03a36bfd68..git_revision:f1b1412521b41e47118b29863224171e434a27a2
* buildtools/mac: git_revision:54284c12607e2818293157cd76d29d03a36bfd68..git_revision:f1b1412521b41e47118b29863224171e434a27a2
* buildtools/third_party/libc++abi/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxxabi.git/+log/c884e7a7ce..a0ace9923e
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/4bf418ebaf..58d1647360
* buildtools/win: git_revision:54284c12607e2818293157cd76d29d03a36bfd68..git_revision:f1b1412521b41e47118b29863224171e434a27a2
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/b1bf58701e..85cca6c8d9
* third_party/android_platform: https://chromium.googlesource.com/chromium/src/third_party/android_platform/+log/abc362f16d..5023a5c74e
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..aa0e8d0564
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/44dda9648c..d3cc7ad85e
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/17ca796825..6e330f7e33
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/666af27e65..3b1084819d
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/2e937557fc..b7dc143ef9
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: Ie37088256a5c3806a8baddb919677478437fd129
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3375473
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-01-10 09:19:23 +00:00
Shahbaz Youssefi acd8fc76b2 Vulkan: Distinguish RP and outside-RP command buffer types
What goes inside and outside a render pass command buffer is largely
mutually exclusive.  Moreover, the size and frequency of allocations is
different between the two.

This change distinguishes the C++ types used for inside and outside
render pass command buffers:

- The type now documents which command buffer a function is able to
  receive.
- `isRenderPass` flag passing, checking and asserting is largely
  removed.
- A follow up change experiments with using different (Vulkan vs ANGLE)
  secondary command buffers for inside and outside RP command buffers.
- A future change could specialize the pool behaviors per command buffer
  type.

Bug: angleproject:6811
Change-Id: Ia4bc669d26ac7e94e8a0dfb9b361666c82f42cc3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3344373
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2022-01-08 06:52:50 +00:00
Tim Van Patten eea7846878 Tests: Add Angry Birds 2 launch trace
Test: TracePerfTest.Run/*_angry_birds_2_launch
Bug: angleproject:6848
Change-Id: Id37fad6c7f78adbac872bcb98c3bd1f608194b14
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3355357
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2022-01-08 00:17:30 +00:00
Shahbaz Youssefi 095d7c0a0c Translator: Clean up spec const / driver uniform types
Bug: angleproject:6755
Change-Id: I8fb1557a5e29fcc28d5cb2f3aaa2c4a14b72583d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3369125
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2022-01-07 23:05:30 +00:00
Brian Sheedy 5c9bd7bacf Update Mac goldctl
Updates DEPS and the Chromium roller script to have both an x64
and arm64 version of goldctl on Mac. Also updates the goldctl
build group to include both binaries.

Bug: chromium:1280002
Change-Id: I82c9c93eb865fb68ad242454415606c9ef2846fd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373623
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Brian Sheedy <[email protected]>
2022-01-07 22:41:40 +00:00
Yuly Novikov 4111f9ef13 Add standalone ANGLE Mac AMD experimental bot
For testing Mac OS 12.

Bug: chromium:1265563
Change-Id: Iacf86a4cf170c59b2856b1f68e63d2eaa90059fa
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3367702
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Yuly Novikov <[email protected]>
2022-01-07 22:28:29 +00:00
Yuly Novikov 9d042d686f Cleanup after iOS build fixes
Bug: angleproject:6871
Change-Id: Ia5cd33c4532e10e61c1ca2c35d5190df97e36f5f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3370867
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Yuly Novikov <[email protected]>
2022-01-07 21:35:20 +00:00
Jamie Madill 99b021a153 infra: Add TSAN and UBSAN tests to CQ.
These tests are running with SwANGLE on Linux.

Bug: angleproject:5795
Change-Id: I9e5e7ceaee6908e360456755f7fa197364ef3d88
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3258004
Reviewed-by: Lingfeng Yang <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 20:55:24 +00:00
Jamie Madill b0feea4e42 Suppress failing test on Vulkan/Intel/Linux.
Bug: angleproject:6881
Change-Id: I4ece10422e21f6c27a81da881421e60236463de0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373167
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 20:17:55 +00:00
Charlie Lao 60a8b59300 Vulkan: Remove std::unique_ptr usage from BufferVk::mBuffer
BufferVk::mBuffer is std::unique_ptr mostly because BufferHelper object
itself does not support move assignment. Now crrev.com/c/3366855 added
move assignment support, we can now use BufferHelper directly. The main
downside I can see is that in BufferVk::ghostMappedBuffer() and
BufferVk::acquireAndUpdate() functions where we have to use move
assignment of mBuffer object, it becomes slightly more expensive than
moving pointer. But switch to using BufferHelper directly makes code
simpler and other access to mBuffer (which is more common usage)
slightly cheaper by removing one pointer indirection.

Bug: b/208323792
Change-Id: Ia7e7731e284eb6c76db954fef194e9d1de82174b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3362252
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-01-07 20:17:38 +00:00
Jamie Madill 217dc204e9 Broaden TSAN EGL multithread suppression.
Other non-random tests can be flaky as well. Because we can't retry
crashing tests with the flaky expectation, mark these tests as
skipped for now.

For more info and possible workarounds see http://crbug.com/1275223

Bug: angleproject:6678
Change-Id: I48d9287e538d0f1141d6871d2948c3f2902ea1c4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373166
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 19:49:54 +00:00
Cody Northrop ae1a56b679 Vulkan: Turn on GL_EXT_shader_framebuffer_fetch for ARM
On ARM, coherent is the default behavior of framebuffer fetch, so
we can expose the GL extension.

Tests: Dead By Daylight app and trace
Bug: b/201764768
Bug: angleproject:6870
Bug: angleproject:6872
Change-Id: I0f98c57e20619d73d1507c4655e7f9bb8c10a53a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3371244
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2022-01-07 19:00:54 +00:00
Jamie Madill 9d668d6c47 Revert "Frontend: separate lock in swap prep"
This reverts commit 40c5cb255c.

Reason for revert: Regression in TSAN caused by this CL:

https://ci.chromium.org/ui/p/angle/builders/ci/linux-tsan-test/352/overview

Original change's description:
> Frontend: separate lock in swap prep
>
> Swapchain-based backends like Vulkan might block a lot in
> vkAcquireNextImageKHR, which is bad for overall fast progress if we also
> hold the global EGL lock there.
>
> This CL starts to split the global EGL lock. We release the EGL lock
> when performing vkAcquireNextImageKHR, and only maintain a lock for
> surfaces.
>
> Bug: angleproject:6851
> Change-Id: I329d5c4c579718a4980c4261590f77099ce1400e
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3361249
> Reviewed-by: Charlie Lao <[email protected]>
> Reviewed-by: Geoff Lang <[email protected]>
> Commit-Queue: Lingfeng Yang <[email protected]>

Bug: angleproject:6851
Change-Id: Ie03b784021f7b8b5c1ef95a911ef7da4029abd46
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373165
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 18:19:24 +00:00
Mohan Maiya b2dac79d9c Fix typo in EGLPrintInfo end2end Test
Version query had incorrect enum in EGLPrintInfo test.
Replace EGL_VENDOR enum with EGL_VERSION enum.

Bug: angleproject:4039
Test: EGLPrintEGLinfoTest.PrintEGLInfo
Change-Id: Ie056f4547f03d5c777b04f2a9cf652496e72702b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373128
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
2022-01-07 18:11:46 +00:00
Tim Van Patten 462cdb08e3 Capture/Replay: Reset FBOs, RBOs, VAOs
Add resetting framebuffers, renderbuffers, and vertex arrays to
MaybeResetResources().

This is required to prevent leaks in app launch traces, such as Angry
Birds 2 (com.rovio.baba).

Bug: angleproject:4599
Change-Id: I34b45ecb1a1b5144f1e23b6bc56315f7713fed94
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3371881
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2022-01-07 18:11:44 +00:00
Jamie Madill 4472b3b0d3 Fix TSAN suppressions.
Bug: angleproject:6746
Change-Id: I015b45d3a258a368c031b040102efce4d2c7cd38
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3373164
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 17:36:54 +00:00
Lingfeng Yang 40c5cb255c Frontend: separate lock in swap prep
Swapchain-based backends like Vulkan might block a lot in
vkAcquireNextImageKHR, which is bad for overall fast progress if we also
hold the global EGL lock there.

This CL starts to split the global EGL lock. We release the EGL lock
when performing vkAcquireNextImageKHR, and only maintain a lock for
surfaces.

Bug: angleproject:6851
Change-Id: I329d5c4c579718a4980c4261590f77099ce1400e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3361249
Reviewed-by: Charlie Lao <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Lingfeng Yang <[email protected]>
2022-01-07 17:06:34 +00:00
Jamie Madill c2a2961493 Test Expectations: Use file order as override priority.
Now expectations that happen first in the file will override those
later expressions. This fixes the weird conflict that could occur
when we use wildcards inside the expression. e.g.:

a) 6746 : *BadConfig = SKIP
b) 5076 : TestSuite.Test/* = TIMEOUT

Previously b) would override a) for TestSuite.Test/BadConfig and we
would give the expectation as TIMEOUT because the string length of
the expectation was longer.

This will allow us to use short skip expressions for e.g. TSAN.

Bug: angleproject:6746
Change-Id: I2dc651c3593c02b6f8723d67c0fc311701ee15f8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3365659
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 16:38:33 +00:00
Lubosz Sarnecki ece463808d tests/EGLProtectedContentTest: Add QueryContext test.
Add a test that calls eglQueryContext to query
EGL_PROTECTED_CONTENT_EXT.

This functionality was implemented by
1fc9b7c6e0.

Test: angle_end2end_tests --gtest_filter="EGLProtectedContentTest.QueryContext*"
Bug: angleproject:6693
Bug: angleproject:6870
Change-Id: I05e6dde96e120ea81e7d4374990e05def100e290
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3358206
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Lubosz Sarnecki <[email protected]>
2022-01-07 15:47:43 +00:00
Alexey Knyazev 1e2856fdcc Update freetype-py wheel
Bug: chromium:1282168
Change-Id: I7daac60c540d6f67620fba2823ac0d4d36845a13
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3372783
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-01-07 14:47:18 +00:00
angle-autoroll a203e12636 Roll SwiftShader from 0b901607cad4 to b57a3aaee927 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/0b901607cad4..b57a3aaee927

2022-01-06 [email protected] Regres: Update test lists @ 0b901607

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in SwiftShader: https://bugs.chromium.org/p/swiftshader/issues/entry
To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I491617a548189d0df162af20014190401a20e735
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3372003
Bot-Commit: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2022-01-07 12:39:24 +00:00
angle-autoroll 8ab13284ad Roll vulkan-deps from 09edcd7c680b to 57e7495dc76d (27 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/09edcd7c680b..57e7495dc76d

Changed dependencies:
* glslang: https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang.git/+log/9b20b25138..17232d21d7
* spirv-cross: https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Cross.git/+log/e9cc640334..fe5a0aa72f
* spirv-headers: https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers.git/+log/eddd4dfc93..b8047fbe45
* spirv-tools: https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/df2aad68b9..75e53b9f68
* vulkan-headers: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/52a76fd0a6..d99496fcb1
* vulkan-loader: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Loader.git/+log/c6c0a2c3fd..b9936f2b7a
* vulkan-tools: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools.git/+log/05c6171c04..d15ff77bda
* vulkan-validation-layers: https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/157e79696e..bdc140e72f

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-deps-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I2df773351f14595d3c654229557eb6d4fc4871f4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3372173
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-01-07 11:13:24 +00:00
angle-autoroll 6f80fa0c37 Roll Chromium from 8712e27d7e28 to b91f3880e3ec (349 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/8712e27d7e28..b91f3880e3ec

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-angle-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Changed dependencies
* build: https://chromium.googlesource.com/chromium/src/build.git/+log/fe157b1f4f..653610b787
* buildtools/linux64: git_revision:19bf826e6e5d05100cb3568e90e48bd3c97d4f22..git_revision:54284c12607e2818293157cd76d29d03a36bfd68
* buildtools/mac: git_revision:19bf826e6e5d05100cb3568e90e48bd3c97d4f22..git_revision:54284c12607e2818293157cd76d29d03a36bfd68
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/6a10e3e97c..4bf418ebaf
* buildtools/win: git_revision:19bf826e6e5d05100cb3568e90e48bd3c97d4f22..git_revision:54284c12607e2818293157cd76d29d03a36bfd68
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/d1a64d3fe7..b1bf58701e
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..aa0e8d0564
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/e9714986c0..44dda9648c
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/24c11001dd..17ca796825
* tools/luci-go: git_revision:89429843eb2dedb599a6c7c7754343b97d95943d..git_revision:d1e877e2b3e5a05a5cd34c4a340fedba14a16c2b
* tools/luci-go: git_revision:89429843eb2dedb599a6c7c7754343b97d95943d..git_revision:d1e877e2b3e5a05a5cd34c4a340fedba14a16c2b
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/0d8ea7b393..666af27e65
* tools/skia_goldctl/linux: 2z57AgaznK-BN6rC-A4ZVj85ldJOjFFCMFQ_LYWeUv4C..YNf7R76UZBvuCmgAKDzb1F43jfA8FkFy9DCW6B98MHEC
* tools/skia_goldctl/win: SSrgf0lBIrCHRZ2acvLwXzzm4KTPzRg17PGIiqsMxBQC..0Z6Y_DY-axS2RajDae9CHJrDn1a4CTif2VkT4CR5jOMC
No update to Clang.

Bug: angleproject:6748
Tbr: [email protected]
Change-Id: I2448899674671748d9390a190e637b777a1d020d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3372167
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-01-07 08:10:24 +00:00
Tim Van Patten 2ebdd23b60 Cleanup TextureCubeTestES3.CubeMapPixelUnpackBuffer
Clean up TextureCubeTestES3.CubeMapPixelUnpackBuffer by removing the
unused shader variable 'uLod'.

Bug: b/194140619
Test: TextureCubeTestES3.CubeMapPixelUnpackBuffer
Change-Id: I14776b34c5921fc4d4177bdaed205843b27b9e94
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3359777
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2022-01-07 01:17:43 +00:00
Charlie Lao caf6433add Vulkan: Rename releaseStagingBuffer to releaseStagedUpdate
There is no more per ImageHelper dynamic buffer for staging, and this
function is not just removing staging buffer, but removing all staged
updates. Rename it to reflect what it actually does.

Bug: b/208323792
Change-Id: I5a2182291848a9e137ed29b888f31215664b46fd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3367078
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-01-07 00:19:33 +00:00
Charlie Lao 93159c020a Vulkan: Remove DynamicShadowBuffer implementation
This is no longer used since mShadowBuffer was removed from BufferVk in
https://chromium-review.googlesource.com/c/angle/angle/+/3313333

Bug: b/208323792
Change-Id: I0bb1d66c2f0f58bac74139a274c957681edf2ad4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3362504
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-01-06 23:33:23 +00:00
Yuly Novikov cf3812921d Revert "Re-skip MSRTT tests on Linux/AMD/Vulkan"
This reverts commit 4b3e3ed5f0.

Reason for revert: tests pass on AMDVLK 2021.Q4.3

Original change's description:
> Re-skip MSRTT tests on Linux/AMD/Vulkan
>
> They crash when vkCreateRenderPass2 is used, as if the RP2 extension is
> exposed but the entry points are missing.
>
> Bug: angleproject:6845
> Change-Id: Ia21cf039b49d5ab2772c7ecddd03df6360449d20
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3363637
> Bot-Commit: Rubber Stamper <[email protected]>
> Commit-Queue: Shahbaz Youssefi <[email protected]>

Bug: angleproject:6845, angleproject:5380
Change-Id: I4ed7251438381560f2c171ee36a2a78bfa4d56a1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3370866
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Yuly Novikov <[email protected]>
2022-01-06 23:14:53 +00:00
Charlie Lao 3263eb01f8 Vulkan: Switch GPU translated vertex buffer to NonHostVisible
When we translate using GPU, there is no need to use host visible
memory. Use device local memory instead.

Bug: b/205337962
Change-Id: Ic76dcb28bde2f079f6ac406d846518bf5f369d74
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3340553
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-01-06 22:35:23 +00:00
Charlie Lao 8589c456a2 Vulkan: Remove mStagingBuffer from ImageHelper and ContextVk
This CL removes ImageHelper::mStagingBuffer and
ContextVk::mStagingBuffer and uses per shared group staging buffer pool
instead.

Bug: b/208323792
Change-Id: I46b5fd542697eb860def9c6d592dd147ad4dc973
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3354090
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-01-06 21:44:13 +00:00
Charlie Lao 6da1ac8140 Vulkan: Switch ReadPixels from DynamicBuffer to shared pool
FramebufferVk::readPixelsImpl() and ImageHelper::copyImageDataToBuffer()
use per FramebufferVk DynamicBuffer. This CL removes this and uses
shared buffer pool to allocate a temporary staging buffer for readPixels
as needed and frees it immediately afterwards.

Bug: b/208323792
Change-Id: I65ddf9bf9f1f14578d9def63f5287cb1a4121dff
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3354038
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-01-06 21:13:33 +00:00