Граф коммитов

17505 Коммитов

Автор SHA1 Сообщение Дата
Jamie Madill 1c0bb44862 Trace Tests: Remove auto-generated code.
Bug: angleproject:5133
Change-Id: I71a82071b1c667475f7fefcd6c8766a9de71141d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3144215
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Tim Van Patten <timvp@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-14 22:11:16 +00:00
Kyle Piddington 76d420826f Metal: ETC and ASTC are missing on M1
Platform guards are incorrect in mtl_utils.mm. We need to
account for macOS post 10.15, which now supports the apple
GPU family query.

Bug: angleproject:6809
Change-Id: Iae219a11ffe0ef0715681009aa24cbbc6fd2c61e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3338624
Reviewed-by: Gregg Tavares <gman@chromium.org>
Reviewed-by: Alexey Knyazev <lexa.knyazev@gmail.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
2021-12-14 21:54:08 +00:00
Mohan Maiya 36fcf80b1f Vulkan: Consolidate SamplerYcbcrConversionCache
Now that SamplerDesc and ImageHelper have the fully qualified
description of a VkSamplerYcbcrConversion, we can lazy allocate
the conversion handle along with streamlining the interface to the
SamplerYcbcrConversionCache class.

Bug: angleproject:6732
Test: Texture2DTestES3.*Yuv*Vulkan
Change-Id: I7deaa0220031bc4c500d88021459017bf937218c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3333629
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: mohan maiya <m.maiya@samsung.com>
2021-12-14 20:50:18 +00:00
Jamie Madill 9907d86e3d Upgrade restricted traces to new trace format.
The new traces are significantly smaller due to unused Program
trimming. The new trace archive is at least 30% smaller after
compression, which should have a positive impact on Android
transfer time. We also reduced the source file count by about
4000 from replay function merging, which should benefit
developer compilation time.

Bug: angleproject:5133
Change-Id: If461875006c2b918197cab9323c3553966c46e88
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3335060
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Tim Van Patten <timvp@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-14 18:17:48 +00:00
Hailin Zhang 7b13a9ac9d Vulkan: Fix dynamic partial update buffer data issue.
add test case for dynamic update buffer data.

Signed-off-by: Hailin Zhang<hailinzhang@google.com>

Bug: b/207714894
Change-Id: I8c1e93d152847c3162c0e2dd49abe3d899c859a0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3328869
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Charlie Lao <cclao@google.com>
Commit-Queue: Hailin Zhang <hailinzhang@google.com>
2021-12-14 17:31:38 +00:00
Peng Huang 32f572b70f Support creating EGLImage from VkImage
Bug: chromium:1264439
Change-Id: I520182143e748f25b44d0725f3f171b7b33a85d8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3311131
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
2021-12-14 17:30:58 +00:00
Jamie Madill 7fc6c07cca Capture/Replay: Update process for trace upgrading.
Includes changes to the retracing script.

Also includes documentation on how the process works.

Bug: angleproject:5133
Change-Id: I1acfe338f3fe0282a0461c314274c761ed04bd2f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3193418
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Tim Van Patten <timvp@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-14 15:54:18 +00:00
Ben Pastene fefd7ae66a Revert "Enable the chromium recipe RDB results experiment for all builds."
This reverts commit 8e43023684.

Reason for revert: experiment is on by default after crrev.com/c/3321235

Original change's description:
> Enable the chromium recipe RDB results experiment for all builds.
>
> This experiment has been enabled at 100% for all chromium builds
> for months now. And the more builders are on it, the more we're able to
> refactor the chromium recipe. This was attempted in crrev.com/c/3307244,
> but had to be reverted since angle builds re-use much of chromium's
> recipe code but don't have the experiment rolled out to them.
>
> So this rolls it out to angle builds to allow for further clean-up in
> chromium's recipe code. Since all angle tests are wrapped via
> result_adapter, they should already have RDB integration (meaning their
> results are already uploaded to RDB).
>
> A LED run of a build with this experiment applied:
> https://ci.chromium.org/swarming/task/578b98d07382dd10?server=chromium-swarm.appspot.com
>
> Another LED run with that experiment and the recipe CL relanded:
> https://ci.chromium.org/swarming/task/578b9939cfccdb10?server=chromium-swarm.appspot.com
>
> This matches its original build:
> https://ci.chromium.org/ui/p/angle/builders/try/win-test/1026/overview
>
> Bug: chromium:1135718
> Change-Id: Ief4993fa9c027f9c2c6c3c352eb4e65ce74b628c
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3309479
> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>

Bug: chromium:1135718
Change-Id: Ief89cef04ee75a8379a815b213e73c8841c9abb3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3336357
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-14 13:52:55 +00:00
Lubosz Sarnecki c56f29a2a5 BufferDataTest: Add more coherent buffer storage tests.
Add UniformBufferMapped and VertexBufferMapped in BufferStorageTestES3.
Add a test that writes to a mapped coherent bufferstorage from multiple
threads.

Test: angle_end2end_tests --gtest_filter="BufferStorageTestES3.*"
Bug: angleproject:5857
Change-Id: I434c2462fb7217ab77667a6ec038f21835beb0b7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3275764
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2021-12-14 12:51:05 +00:00
Lubosz Sarnecki 9df048efc2 BufferDataTest: Do not require GL_EXT_map_buffer_range.
For tests where glMapBufferRange and glUnmapBuffer is used, which is
part of core GLES 3.
Keep it as requirement for tests where glMapBufferOES and
glUnmapBufferOES is used.

This enabled these tests in the capture/replay test suit, as they are
not skipped anymore. GL_EXT_map_buffer_range and GL_OES_mapbuffer are
disabled during capture.

Test: angle_end2end_tests --gtest_filter="BufferStorageTestES3.*"
Bug: angleproject:5857
Change-Id: I4acdb428479f5d0dbd64670107d4c59a0b10df7c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3275763
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2021-12-14 12:25:05 +00:00
Lubosz Sarnecki d4b8cd5eac FrameCapture: Implement capture of coherent bufferstorages.
Track buffers with the GL_MAP_COHERENT_BIT_EXT access flag in a
CoherentBufferTracker on a per page basis using the
PageFaultHandler and protection functions from system_utils.

Check for dirty memory and capture it on draw calls.

Bug: angleproject:5857
Change-Id: Ib098f96952db7583d3e6517570c179e7754f54b2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3168629
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2021-12-14 11:45:15 +00:00
angle-autoroll f236c8f29b Roll vulkan-deps from a0a6270b47e4 to c03890076954 (1 revision)
https://chromium.googlesource.com/vulkan-deps.git/+log/a0a6270b47e4..c03890076954

Changed dependencies:
* vulkan-loader: ca9efe3f1c..24373f2d98

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 timvp@google.com 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: timvp@google.com
Change-Id: I6d7527ea901a557a907b2de6df30794fbff781a8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3338078
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-14 11:10:24 +00:00
angle-autoroll 66ad93511a Roll SwiftShader from 592d413edb56 to f354daff5a2b (4 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/592d413edb56..f354daff5a2b

2021-12-14 swiftshader.regress@gmail.com Regres: Update test lists @ 1eee6cbc
2021-12-13 srisser@google.com Regres updates deqp.json before updating testlists
2021-12-13 swiftshader.regress@gmail.com Regres: Update test lists @ 592d413e
2021-12-13 swiftshader.regress@gmail.com Regres: Update test lists @ 592d413e

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 timvp@google.com 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: timvp@google.com
Change-Id: I277b8fb47408b608b133777be66d0790d9907b3a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3338205
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-14 11:07:54 +00:00
angle-autoroll 39c759ea81 Roll Chromium from 30aeba8927a2 to 0c0a3654694f (457 revisions)
30aeba8927..0c0a365469

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 timvp@google.com 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: 47daaa3cef..4ba87d4691
* buildtools/linux64: git_revision:fc295f3ac7ca4fe7acc6cb5fb052d22909ef3a8f..git_revision:2e56c317bd8e2bf152cfa2ead6ac5fa476fe28b4
* buildtools/mac: git_revision:fc295f3ac7ca4fe7acc6cb5fb052d22909ef3a8f..git_revision:2e56c317bd8e2bf152cfa2ead6ac5fa476fe28b4
* buildtools/third_party/libc++abi/trunk: 58799ca24f..603d9d1067
* buildtools/win: git_revision:fc295f3ac7ca4fe7acc6cb5fb052d22909ef3a8f..git_revision:2e56c317bd8e2bf152cfa2ead6ac5fa476fe28b4
* testing: 56b16934c0..ce77949bc0
* third_party/android_deps: 05738da13b..8790d052d9
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..1ba82f650c
* third_party/depot_tools: ecc14aa45d..2777fd9c6a
* third_party/turbine: mlH0GH_teB71nsyjwL_if7NtARJdHnf6-4VXRFyGujgC..RGxvdzLaS73gQOXCTgq7CWKsqCgrXDPPL0Pcxz6oGbQC
* tools/clang: 7fd41684df..dc7eff95e1
* tools/mb: 7390fef5d6..681a70255d
* tools/perf: 460c03d1fb..5f7c21c863
No update to Clang.

Bug: None
Tbr: timvp@google.com
Change-Id: I395ee4d3d6218c09bbec9c7f9ffccd6924b8d692
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3337676
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-14 09:14:15 +00:00
Amirali Abdolrashidi 5b858acfc3 Vulkan: Fix the offset issue in multiDrawIndirect
* In MultiDrawElementsIndirect, it resets the index buffer
offset (mCurrentIndexBufferOffset) to 0.
* Added a unit test for MultiDrawElementsIndirect to
make sure that the index buffer offset is reset properly.
* Updated the test program in MultiDrawIndirectTest to
include a multi-colored mode.

* D3D11 and Metal tests regarding the following functions
are disabled so more test coverage can be added:
  * glMultiDrawElementsIndirectEXT
  * glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE

Bug: angleproject:6751
Change-Id: I81bb7b3aa9b6ad8a9283dd50728ec6250c3668ad
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3330737
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Amirali Abdolrashidi <abdolrashidi@google.com>
2021-12-14 04:18:55 +00:00
John Cunningham 42bd4fc29a Metal: add ANGLE_metal_create_context_ownership_identity.
This Metal-specific EGL extension allows a given context
and the GPU resources it allocates to be associated with
a particular task ID on the system, for system-level
bookkeeping purposes.

Bug: angleproject:6795
Change-Id: I19ee0993564169b01c4a450e63dcfacd339b98b5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3335172
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
2021-12-14 03:36:09 +00:00
Jeff Vigil 1fc9b7c6e0 EGL: Add queries for EGL_KHR_protected_content
Add surface and context query for EGL_PROTECTED_CONTENT_EXT
attribute.

Bug: angleproject:6693
Change-Id: Iad3d8d7e0db89414c44a0101c26cda6e60308e71
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3324963
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Brandon Schade <b.schade@samsung.com>
2021-12-13 23:43:54 +00:00
Gregg Tavares afca80a88a Metal:Add debug info for shaders
This should fix the WEBGL_debug_shader_info CTS test

Bug: angleproject:6788
Change-Id: I89e18f94ea3199149c252355372648b5e328e1ed
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3329204
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-13 23:35:34 +00:00
Jamie Madill f60b152cc6 Frame Capture: Merge small frames into single sources.
By buffering up the replay functions before writing them out into
sources, we can reduce the number of replay files by a large
margin.

Bug: angleproject:5133
Change-Id: I0a556fd1a3a5f2dcc8a26b761e885c9b7e464cf5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3316200
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Tim Van Patten <timvp@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-13 23:06:04 +00:00
Shahbaz Youssefi b7a42c88cd Vulkan: Remove VK_EXT_swapchain_colorspace check
We don't make use of this extension since
https://chromium-review.googlesource.com/c/angle/angle/+/3208689.

Bug: angleproject:2514
Change-Id: I8b8edf5006ac1c3eeeefcadbe77249a5a6a5dda7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3335070
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
2021-12-13 22:45:14 +00:00
Jamie Madill f40e83cbd5 Reduced "rx::vk::kInFlightCommandsLimit" from "100" to "50".
The "100" value is too high and causes "S21 Adreno" block in
"vkQueueSubmit()". This is a temp solution.

Patch authored by Igor Nazarov <i.nazarov@samsung.com>

Bug: angleproject:6401
Change-Id: Ie7f9c8ef5311b17325640cae0f613ece768c0fa3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3165666
Reviewed-by: Charlie Lao <cclao@google.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-13 22:19:18 +00:00
Lingfeng Yang ea03bf47e5 Vulkan: fix crash when clearing stencil
Previously, we cast the originally-32-bit mask to 8 bits, and then
crashed ourselves in the assert.

Also optimize away the stencil based on 8 bit explicitly in the
frontend.

Bug: chromium:1275858
Change-Id: I0b03a17e72f5a4540b5c4605353eb1fde898057d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3315158
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Charlie Lao <cclao@google.com>
Commit-Queue: Lingfeng Yang <lfy@google.com>
2021-12-13 20:53:34 +00:00
Yuly Novikov a27be08467 Skip GLSLTest_ES31.StructAndArrayEqualOperator on Pixel 4
Flaky OOM.

Bug: angleproject:6805
Change-Id: I50f42c6ce486f68563c08c4e9b3aab1b4876ca0b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3334877
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
2021-12-13 19:42:54 +00:00
Jamie Madill e8b186c989 Frame Capture: Don't unmap regenned buffers in reset.
These buffers are deleted and recreated, so unmapping them gives
a "resource not mapped" error during replay.

Found when working on the "world_war_doh" trace.

Bug: angleproject:5133
Change-Id: Id1e6318c44a2a09fa643ef0a72f1d03d8396e5fb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3327862
Reviewed-by: Tim Van Patten <timvp@google.com>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-13 16:11:14 +00:00
Jamie Madill a24919e71a Frame Capture: Clear array buffer binding in MEC.
This should allow us to properly reset buffer state when capturing
vertex attribute pointer state in the per-context (not shared)
setup function.

Also adds a missing replay state buffer binding update.

Fixes a state serialization difference in "badland".

Bug: angleproject:5133
Change-Id: I8509dbf7211726ff47f4e7e5ff86a0eb8726d75c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3327861
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-13 15:17:20 +00:00
Brian Sheedy a1e066db32 Suppress Mac 12 failure
Suppresses a failure in
PointSpritesTest.PointSizeAboveMaxIsClamped on Metal with Mac 12.

Bug: angleproject:6800
Change-Id: Ib6646b31e7d0231e2cd1284301792216bd5c70d6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331200
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-13 14:48:45 +00:00
angle-autoroll 0f6be3e068 Roll vulkan-deps from 267fa481ccad to a0a6270b47e4 (7 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/267fa481ccad..a0a6270b47e4

Changed dependencies:
* spirv-tools: 3156158878..f0351b7bc6
* vulkan-loader: 2bbfe2ef64..ca9efe3f1c
* vulkan-tools: 08f87babad..05c6171c04
* vulkan-validation-layers: 3dfeacfe0a..9f537109da

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 timvp@google.com 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: timvp@google.com
Change-Id: Iad3d01cf4d14a95240db0a8995503e352423295d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3334134
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-13 12:57:54 +00:00
angle-autoroll b365a69edf Roll SwiftShader from 4c62980da8c1 to 592d413edb56 (4 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/4c62980da8c1..592d413edb56

2021-12-10 capn@google.com Refactor image sample normalization
2021-12-10 capn@google.com Report depth and multi-plane UNORM formats as unsigned normalized
2021-12-10 swiftshader.regress@gmail.com Regres: Update test lists @ 4c62980d
2021-12-10 cwallez@chromium.org Suppress -Wdeprecated-declarations in Subzero's LLVM

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 timvp@google.com 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: timvp@google.com
Change-Id: Id5fded5229b9f6a9aade7357ea505e43aac3ae4e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3334524
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-13 11:25:14 +00:00
angle-autoroll 8991bf5460 Roll Chromium from 6214b401e0c5 to 30aeba8927a2 (473 revisions)
6214b401e0..30aeba8927

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 jonahr@google.com 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: 063796f993..47daaa3cef
* buildtools/third_party/libc++abi/trunk: d520ea5884..58799ca24f
* testing: ea8be42f0a..56b16934c0
* third_party/abseil-cpp: ac517c4de3..58d8190809
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..45fc896c3e
* third_party/depot_tools: 58c7c386e6..ecc14aa45d
* tools/clang: ed8451adf6..7fd41684df
* tools/mb: cb04ae000a..7390fef5d6
* tools/perf: 68a1dfbe1d..460c03d1fb
No update to Clang.

Bug: None
Tbr: jonahr@google.com
Change-Id: Ib050fae2ea271e43a27164df9b082f1c1c87d449
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3334272
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-13 08:17:55 +00:00
Gregg Tavares a1b9eb68e4 Replace IOSurfaceSurfaceEAGL.mm table with less strict padding
Bug: angleproject:6783
Change-Id: Id67f581af0742b47fc5ea38de616391e57b763de
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331641
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-11 04:59:13 +00:00
Kyle Piddington 194687e7cc Metal: Fix M1 and iOS synchronization for readPixels
ReadPixels does not implicitly flush context before reading
on iOS and macOS hardware due to shared memory. look for any pending
GPU Work, and flush the command buffer if needed.

Bug: angleproject:6803
Change-Id: I5688b031ecffcd7427263041d4e33ae256f68af6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3318592
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Tim Van Patten <timvp@google.com>
Commit-Queue: Kyle Piddington <kpiddington@apple.com>
2021-12-11 03:08:21 +00:00
Gregg Tavares 2d6caae459 Metal: Add maximum render target size validation
Bug: angleproject:6790
Change-Id: I4a7e7285e040cc68e4fc16bb653f6d1512f541c9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331671
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-11 02:11:32 +00:00
Gregg Tavares cf9ab647a3 Add early out validation in drawArraysCommon
Bug: angleproject:6791
Change-Id: I60de6806dae9c917c6db24a18f586e3b0aa2154e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331414
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-11 01:17:14 +00:00
Gregg Tavares d97b1c4a0a Metal: Refactor restartRange cache
Bug: angleproject:6784
Change-Id: I8a2e1df2ac621415d75708c0bba16f8ca17b0ce6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331675
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-11 01:08:31 +00:00
Gregg Tavares 1642b4a364 Metal: Fix Instanced Draw feature support on Simulator
Bug: angleproject:6786
Change-Id: I4c567bf2ec61df581ae0e8eeb1c36c7d37e15d04
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3331637
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Kyle Piddington <kpiddington@apple.com>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-11 01:07:32 +00:00
Gregg Tavares 2e66956611 Metal: Refactors from Webkit
Mostly renaming, typos, cleanup

bug: angleproject:6787
Change-Id: Ic71c296d7849244cae2ca29b264a10cb96bca612
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3329261
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-11 01:02:12 +00:00
Gregg Tavares 5068c04087 Metal: Merge changes to mtlPixelFormatTable
Bug: angleproject:6789
Change-Id: I9893093fdff1138fc8ae35ac4363201fa1e0b825
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3329206
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-10 21:32:01 +00:00
Lubosz Sarnecki 56aee5d640 Reland "system_utils: Add memory protection functionality."
This is a reland of b1c703e5f5
that was reverted in 663831aa67.

Skip PageFaultHandlerProtect and PageFaultHandlerDefaultHandler on macOS
and Fuchsia.

Original change's description:
> Reland "system_utils: Add memory protection functionality."
>
> This is a reland of ab75a90ff4
> that was reverted in b007e667a8.
>
> Implement PageFaultHandler and memory protection functions.
> Uses mprotect and sigaction on POSIX and equivalent Win API functions on
> win32.
>
> Add tests to system_utils_unittests.
>
> Add stubs for winuwp.
>
> Replace ASSERT with ASSERT_TRUE in the PageFaultHandlerDefaultHandler
> test to make it succeed on release builds, as the code was optimized
> out. Furthermore the test did not correctly remove protection from the
> whole area it protected, which caused a hang after deinitialization on
> some build configurations, since the custom page fault handler was also
> still in place. The test now correclty removes protection from the whole
> area and sets back the original page fault handler.
>
> Test: angle_unittests --gtest_filter="SystemUtils.PageFaultHandler*"
> Bug: angleproject:5857
> Change-Id: Ibb0acfefd9a09c3360c04c812a2a8346b951e1da
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3322992
> Reviewed-by: Jamie Madill <jmadill@chromium.org>
> Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>

Test: angle_unittests --gtest_filter="SystemUtils.PageFaultHandler*"
Bug: angleproject:5857
Change-Id: Ifaa966a7c569aa9ff0112897a02fa8f873cd52dd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3329610
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2021-12-10 20:53:11 +00:00
Jamie Madill 66e1fb86e9 Trace Tests: Ensure zillow runs on SwiftShader.
This trace was being skipped based on incorrect GPU detection.

Bug: angleproject:5133
Change-Id: I15e36e099aa2443153184f95b360a8afec278019
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3330575
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-10 18:13:21 +00:00
Amirali Abdolrashidi 4d0de3d27a Update the arg types for glMultiDraw*IndirectEXT()
* Updated the auto-generated types for arguments "mode"
and "type" for glMultiDraw*Indirect and glMultiDrawIndirectEXT
functions to PrimitiveMode and DrawElementsType, similar to
the other glMultiDraw* functions.

Bug: angleproject:6770
Change-Id: If02a66b6fb2f81848ab6e43a6cd406d5956bf331
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3321792
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Amirali Abdolrashidi <abdolrashidi@google.com>
2021-12-10 17:52:18 +00:00
Alexis Hetu f7d92a32f1 Add debug info when loading EGL entry points fails
Mac11 bots are often failing with the:
"Error loading EGL entry points"
error for an unknown reason.

This CL adds the library path to the error message
to see if it's trying to open the correct file.

Bug: chromium:1277690
Change-Id: Ieb73a3097702933a89794d92c19ee44a6301c169
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3330576
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Commit-Queue: Alexis Hétu <sugoi@chromium.org>
2021-12-10 17:42:30 +00:00
Peng Huang 933f066e38 Enable GL_ANGLE_texture_usage extension
This extension doesn't change ANGLE behavior with Vulkan backend,
since it is just a hint for ANGLE to optimize texture allocation.

Bug: angleproject:6771,chromium:1264439
Change-Id: Ie2411894a02bbcb0a5304c635f1f5648520ad22a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3329694
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
2021-12-10 16:40:01 +00:00
Peng Huang cc516f9701 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 <jmadill@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
2021-12-10 16:33:01 +00:00
angle-autoroll 9d5faed87d Roll vulkan-deps from 38603b300bce to 267fa481ccad (8 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/38603b300bce..267fa481ccad

Changed dependencies:
* glslang: 542ee69d83..ca13951205
* spirv-tools: 438096e0c2..3156158878
* vulkan-validation-layers: ee8a454f88..3dfeacfe0a

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 jonahr@google.com 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: jonahr@google.com
Change-Id: I844f4180a6191558fe4ee0022ce46aa82d2e13f1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3328072
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-10 11:53:21 +00:00
angle-autoroll 7a36a69bb4 Roll SwiftShader from 4625f84e8d56 to 4c62980da8c1 (6 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/4625f84e8d56..4c62980da8c1

2021-12-10 capn@google.com Implement VK_KHR_vulkan_memory_model
2021-12-09 capn@google.com Update vk::Stringify() structure handling
2021-12-09 sugoi@google.com Fix using XCB with odd width
2021-12-09 capn@google.com Implement VK_EXT_format_feature_flags2
2021-12-09 andre.kempe@arm.com [pac] Add a specific flag for enabling PAC only
2021-12-09 capn@google.com Simplify scaling of 16-bit sampled texel components

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 jonahr@google.com 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: jonahr@google.com
Change-Id: I6137850bc3b8f94cd6a4ec6127a5dba9ff816533
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3328504
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-10 11:08:41 +00:00
angle-autoroll fb82729dd4 Roll Chromium from e1fa86b1827a to 6214b401e0c5 (1064 revisions)
e1fa86b182..6214b401e0

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 jonahr@google.com 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: 2ce7bb7605..063796f993
* buildtools/third_party/libc++abi/trunk: 89f2e82120..d520ea5884
* buildtools/third_party/libunwind/trunk: 74c6eec693..d81cd6236c
* testing: 0385db204c..ea8be42f0a
* third_party/abseil-cpp: db126cca75..ac517c4de3
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..fa35beefb3
* third_party/depot_tools: 0a233e1760..58c7c386e6
* tools/clang: 336fcfd099..ed8451adf6
* tools/luci-go: git_revision:31175eb1a2712bb75d06a9bad5d4dd3f2a09cd1f..git_revision:e897e118887a2e6c50a82212b660cb2a7c58d910
* tools/luci-go: git_revision:31175eb1a2712bb75d06a9bad5d4dd3f2a09cd1f..git_revision:e897e118887a2e6c50a82212b660cb2a7c58d910
* tools/mb: bcefc4c28e..cb04ae000a
* tools/perf: e136376e7e..68a1dfbe1d
* tools/skia_goldctl/linux: wdkOk4Hhfdk2f0Fn4TnicgWCxDVdkOK0W71K0ivXMaEC..2z57AgaznK-BN6rC-A4ZVj85ldJOjFFCMFQ_LYWeUv4C
* tools/skia_goldctl/mac: gJSgm5xIzq6ePie9lIvMfyt3vEXbiVb5NreHTEkFS58C..zLP4FDegN-yg3uvzWUdf4zNRVHDwHd0VLm86FkZCP_MC
* tools/skia_goldctl/win: BkeCwTnJJi2hffEKlsGWTiP5quyDianpBWnloFZ49ZEC..SSrgf0lBIrCHRZ2acvLwXzzm4KTPzRg17PGIiqsMxBQC
No update to Clang.

Bug: angleproject:6430
Tbr: jonahr@google.com
Change-Id: If65c472eac91c20a9afab55adb815b99117a561b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3328070
Commit-Queue: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: angle-autoroll <angle-autoroll@skia-public.iam.gserviceaccount.com>
2021-12-10 09:32:42 +00:00
Ash Burn ac9b2703e8 fix typo: 'choromium' -> 'Chromium'
This is truly an incredibly high priority commit.

Bug: angleproject:6734
Change-Id: I921148ecfffbe1ce7fcad0eccb4a53e51d247746
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3328947
Reviewed-by: Shahbaz Youssefi <syoussefi@google.com>
Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
2021-12-10 05:54:09 +00:00
Hailin Zhang 3be551d7c2 fix directUpdate buffer pointer issue.
inside mapWithOffset already add the mBufferOffset

Signed-off-by: Hailin Zhang<hailinzhang@google.com>

Bug: b/207714894
Change-Id: Ia400bccbef1abc756cd8155e93a775338a30e8b9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3325025
Reviewed-by: Lingfeng Yang <lfy@google.com>
Reviewed-by: Charlie Lao <cclao@google.com>
Commit-Queue: Hailin Zhang <hailinzhang@google.com>
2021-12-10 03:12:50 +00:00
Jamie Madill 663831aa67 Revert "Reland "system_utils: Add memory protection functionality.""
This reverts commit b1c703e5f5.

Reason for revert: Fails on fuchsia bots:

https://ci.chromium.org/ui/p/chromium/builders/try/fuchsia_arm64/1020498/overview

mprotect failed: Not supported

Original change's description:
> Reland "system_utils: Add memory protection functionality."
>
> This is a reland of ab75a90ff4
> that was reverted in b007e667a8.
>
> Implement PageFaultHandler and memory protection functions.
> Uses mprotect and sigaction on POSIX and equivalent Win API functions on
> win32.
>
> Add tests to system_utils_unittests.
>
> Add stubs for winuwp.
>
> Replace ASSERT with ASSERT_TRUE in the PageFaultHandlerDefaultHandler
> test to make it succeed on release builds, as the code was optimized
> out. Furthermore the test did not correctly remove protection from the
> whole area it protected, which caused a hang after deinitialization on
> some build configurations, since the custom page fault handler was also
> still in place. The test now correclty removes protection from the whole
> area and sets back the original page fault handler.
>
> Test: angle_unittests --gtest_filter="SystemUtils.PageFaultHandler*"
> Bug: angleproject:5857
> Change-Id: Ibb0acfefd9a09c3360c04c812a2a8346b951e1da
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3322992
> Reviewed-by: Jamie Madill <jmadill@chromium.org>
> Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>

Bug: angleproject:5857
Change-Id: Iaab4067a7ec9240bb6c64b810ac6d3ea7bd86fe1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3327743
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-12-09 19:39:10 +00:00
Gregg Tavares 04110e4e67 Metal: Fix Intel backend fails with tall texture
Copied test from the WebGL conformance suite.
A 1x<MAX_TEXTURE_SIZE> texture fails on Intel in the Metal
backend.

This was fixed in WebKit so just applying that fix.

Bug: angleproject:6754
Change-Id: Id1cafb3b560f14630684d55b0e61cea4c7f33a6d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3311941
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Commit-Queue: Gregg Tavares <gman@chromium.org>
2021-12-09 19:15:29 +00:00