20266 Commits
Author SHA1 Message Date
osy 18e942b3e6 Metal: fix compile error on Xcode 15 2023-08-06 20:44:01 -07:00
osy ee1abac6e1 Build: support building Metal without GL enabled 2023-08-05 22:57:44 -07:00
osy bd22479216 Translator: fix build issues when GL is disabled 2023-08-05 22:56:17 -07:00
osy 13630ff5d3 metal: MTLBarrierScopeRenderTargets is not supported on iOS 2023-04-23 21:07:26 -07:00
osy 069c7d3ed0 Build ANGLE library for UTM
Fixed path lookup to be the same as UTM.
2023-04-23 21:07:19 -07:00
osy 1f1c8abee2 Enable iOS builds for Metal backend 2023-04-23 21:07:13 -07:00
Akihiko Odaki bec220f6b9 Translator: Fix operand component specifications
Before this change, TIntermConstantUnion::foldUnaryComponentWise always
used the first operand component for some operators. Use the operand
component corresponding to the result component.

Bug: angleproject:7801
Change-Id: I99a941a9eee0c10a4bcb3f515aa5cbf5accc0d52
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3996520
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Auto-Submit: 小田喜陽彦 <[email protected]>
Commit-Queue: Jonah Ryan-Davis <[email protected]>
2023-01-10 15:14:56 +00:00
Cody Northrop fa612d047b Tests: Add MARVEL SNAP trace
Test: angle_trace_tests --gtest_filter="*marvel_snap*"
Bug: angleproject:7941
Change-Id: Ie028c3184966d2f10717ed6fd0fabe8ecad75c8e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4149929
Reviewed-by: Roman Lavrov <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2023-01-10 14:54:53 +00:00
angle-autoroll 0f888b1422 Roll Chromium from 02451be6fd41 to 4efd652d78ce (500 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/02451be6fd41..4efd652d78ce

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/0c2eadc5bb..5f0888fc07
* buildtools: https://chromium.googlesource.com/chromium/src/buildtools.git/+log/cf8d11e411..f89baaae43
* buildtools/third_party/libc++/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git/+log/7c5e4b4eb3..0b0cecd0de
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/809529a935..e56ae5abfa
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..1ef5b9a669
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/6f905470df..2b1aa8dcab
* third_party/fuchsia-sdk/sdk: version:11.20230108.3.1..version:11.20230109.2.2
* third_party/turbine: P0XosyjdPaNgW3Am_eNs0rON86r0B11hB3hhwh3_INAC..tkDRS82bARx4x6zEAw-ZmPcOBVY2WnTvK2Gai3TqPSsC
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/e8c31f937f..341ed9bf44
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: I881a581d23d4346803a06d83c725717c39b63f50
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4149934
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2023-01-10 08:44:03 +00:00
Charlie Lao 493f3f310a Reland "Vulkan: Only allocate default attribute if needed"
This is a reland of commit 85c98a92bb

Original change's description:
> Vulkan: Only allocate default attribute if needed
>
> mDirtyDefaultAttribsMask has all bits set when starts.
> ContextVk::handleDirtyGraphicsDefaultAttribs() is looping all dirty bits
> and try to allocate buffer for it, which means we are looping 16
> times when app starts. This CL changes to allocate a buffer only if used
> by program.
>
> Bug: b/258862506
> Change-Id: I2f0a75d1fe141c9ac3101088fdc4ce4f60b0c4ee
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4024544
> Reviewed-by: Shahbaz Youssefi <[email protected]>
> Reviewed-by: Yuxin Hu <[email protected]>
> Commit-Queue: Charlie Lao <[email protected]>

Bug: b/258862506
Bug: angleproject:7866
Change-Id: Iad0b6a6ce5ec42e48461a199773eb8dc9976265e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4144938
Reviewed-by: Yuly Novikov <[email protected]>
Reviewed-by: Yuxin Hu <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2023-01-09 23:18:28 +00:00
Alexey Knyazev 9d5d619c4a Adjust clip distance compiler state and validation
The internal uniform, which is used for passing GL state on
some platforms, could be removed by GL drivers when built-ins
are not accessed; this may lead to failed frontend assertions.

Refactored relevant compiler state and validation helpers to
avoid ambiguous usage.

Added ClipCullDistanceTest.Unused test.

Bug: angleproject:4452
Change-Id: I06fdf9a69e01afb2ad11fa12e0510d8b0421e4bc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143839
Commit-Queue: Alexey Knyazev <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2023-01-09 19:03:31 +00:00
Roman Lavrov 6e3f40482a Log free space on device (df -h) if log=debug.
Bug: chromium:1405504
Change-Id: I4c4f2e291bf10669b55adcd08bc57e338ca8ae62
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4147388
Reviewed-by: Yuly Novikov <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
2023-01-09 17:47:38 +00:00
Jamie Madill 5ca36d3c56 Trace Interpreter: Properly support resource ID maps.
Previously we were using the key value as the resource value.
In some cases these values would become mismatched when running
a replay, which would cause interpreter errors.

Bug: angleproject:7887
Change-Id: I7f8e687986e8282a6df066bdae5ace07e4510b47
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4140258
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2023-01-09 17:08:59 +00:00
Gert Wollny 4194dab494 Capture/Replay: Test the correct context ID when emitting setup
Fixes: b432c84c2b (origin/chromium/5455)
    Capture/Replay: Fix collecting the initialized contexts

Bug: angleproject:7805
Bug: angleproject:7938
Change-Id: Ia321179bef8fd33c7968177ffcb4da78103a99fc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143840
Commit-Queue: Gert Wollny <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2023-01-09 15:34:05 +00:00
Roman Lavrov 4403abc0d4 Enable merge script failure detection
chromium_swarming.expose_merge_script_failures
https://crbug.com/1346781#c96

Bug:chromium:1346781
Change-Id: I33c7fcbaa286f4c0401a16c0a03635054c7330f0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4144179
Reviewed-by: Yuly Novikov <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
2023-01-09 15:27:56 +00:00
angle-autoroll b28fa2e46f Roll VK-GL-CTS from 5aa5b0809f05 to c1ebeb5013f9 (11 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/5aa5b0809f05..c1ebeb5013f9

2023-01-09 [email protected] Fix missing global_priority_transition tests
2023-01-09 [email protected] Add tests for BufferView access with all formats supported interacted with fetchTexel and ImageLoad
2023-01-09 [email protected] Warn if STORAGE_*_ATOMIC_BIT is set on multi-component formats.
2023-01-09 [email protected] Enable missing dedicated allocation tests in copy_and_blit
2023-01-09 [email protected] Treat DynamicLibrary library list as alternatives
2023-01-09 [email protected] Ensure that some clear commands ignore conditionals.
2023-01-09 [email protected] Add tests for a renderpass with LOAD_OP_CLEAR and STORE_OP_STORE
2023-01-09 [email protected] Test device entry-points from instance extensions
2023-01-09 [email protected] Fix state query tests for desktop GL context
2023-01-09 [email protected] Support GL 4.5 in the 'negative' tests
2023-01-09 [email protected] Merge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vk-gl-cts-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: I52d1d4187fd56b86154cc7bf7e8ac7ba8b6c182d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4146546
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2023-01-09 15:15:53 +00:00
angle-autoroll d53c520e84 Roll Chromium from 20196e335c59 to 02451be6fd41 (589 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/20196e335c59..02451be6fd41

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/12734d306c..0c2eadc5bb
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/120e9f1884..809529a935
* third_party/abseil-cpp: https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp/+log/e38c901c6f..278c5821d6
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..163b421317
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/50985d5fdd..6f905470df
* third_party/fuchsia-sdk/sdk: version:11.20230105.2.1..version:11.20230108.3.1
* third_party/r8: jyDAFIKO9nDUNWJzgjzSp6qvRE8di6dCoBtierYMedEC..3VqLjArDzdJ3Rgq8SH04G_33VEV5H7Wk5KquOg8OMkUC
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/5c711ec7ea..e8c31f937f
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/3b09d7430e..0d00eb2837
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/34faa777c7..574936f02f
No update to Clang.

Bug: angleproject:3685,angleproject:4242,angleproject:5038,angleproject:5223,angleproject:6245,angleproject:7079,angleproject:7234,angleproject:7421
Tbr: [email protected]
Change-Id: I190b669737645c62d7e4fef7e94071ab62070d91
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4146543
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2023-01-09 08:43:57 +00:00
Jamie Madill 9c1598af45 Trace Replay: Fix UBO access in the trace fixture.
This bug was from the rework to use encapsulated functions.

Bug: angleproject:7731
Bug: b/262815739
Change-Id: I3965c04439c8f4c2e67708bd2536b8beb3270880
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4144178
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Roman Lavrov <[email protected]>
2023-01-06 20:11:23 +00:00
Yuly Novikov 1f997ceff6 Skip crashing final_fantasy trace perf on Pixel 6 native
Bug: angleproject:7936
Change-Id: Ied2399e66052d3b3f2b26f39c32aaf3950579eea
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143838
Auto-Submit: Yuly Novikov <[email protected]>
Commit-Queue: Yuly Novikov <[email protected]>
Reviewed-by: Roman Lavrov <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
2023-01-06 19:27:12 +00:00
Roman Lavrov cf6a3f0930 Add srisser
Bug: None
Change-Id: Ibedbbf4068a31c2f1a4cf64848a7fb8a49e72a23
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143442
Auto-Submit: Roman Lavrov <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2023-01-06 18:36:26 +00:00
Roman Lavrov 5c4e1c35d9 Fix angle_metrics.json handling
Nested for loops work the other way around :S

Bug: angleproject:7299
Change-Id: Ic1d21a6a354f9cebca09ae0975eba126ab6406f4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143440
Reviewed-by: Yuly Novikov <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
Auto-Submit: Roman Lavrov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2023-01-06 18:09:03 +00:00
Roman Lavrov ca56b96688 Update owners (+solti +lpy -lfy -ffz)
Bug: None
Change-Id: If7da7c7299b31159290222f5be010a174f0bec36
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143439
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
2023-01-06 17:09:55 +00:00
Yuly Novikov e7ded5d951 Add ANGLE Pixel 6 CQ and Perf bots
Keeping the experimental bot to test adding GLES backend tests.

Bug: angleproject:6819
Change-Id: I869fc3fe29964756d0231b0a6fc51aa7774963f2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143159
Reviewed-by: Roman Lavrov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Yuly Novikov <[email protected]>
2023-01-06 15:22:47 +00:00
Yuly Novikov ca0489f071 Skip couple flaky trace perf tests on Win Intel
beach_buggy_racing on Vulkan
aliexpress on native

Bug: angleproject:7934
Change-Id: I78f78174e95aa0a4bab6685efb62b52f87e6e4f0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4143158
Reviewed-by: Roman Lavrov <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
Auto-Submit: Yuly Novikov <[email protected]>
2023-01-06 14:56:10 +00:00
angle-autoroll 045888db2a Roll Chromium from f676f874381a to 20196e335c59 (511 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/f676f874381a..20196e335c59

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/e273177111..12734d306c
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/dc4013e8dd..120e9f1884
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..ec32355335
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/58a343c88b..50985d5fdd
* third_party/fuchsia-sdk/sdk: version:11.20230104.1.1..version:11.20230105.2.1
* third_party/r8: fCfmTCTodJobBFr8fnGgzGEOm8w4aaHiVjWr5Id9cEwC..jyDAFIKO9nDUNWJzgjzSp6qvRE8di6dCoBtierYMedEC
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/3b54a131a9..5c711ec7ea
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/7c3502515b..3b09d7430e
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/b26e426e04..34faa777c7
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: I6df15b67c89cfde0259e1eaf1fa01b138a745734
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4141581
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2023-01-06 08:01:55 +00:00
Dan Glastonbury 1d2b20f535 Metal: Fix Metal API deprecation warnings
macOS 13/iphoneOS 16 deprecated Metal APIs, causing warnings when
building ANGLE targeting Ventura as the minimum supported OS. WebKit
handles deprecated APIs by selectively silencing warnings around the
affected code.

This change adds ANGLE_APPLE_ALLOW_DEPRECATED_{BEGIN/END} and wraps code
generating warnings to silence the warning.

Bug: angleproject:7908
Change-Id: I7469652e0f4e0cf41ae3c295c2e3ae6bbd72e949
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4121822
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Kenneth Russell <[email protected]>
2023-01-05 23:58:57 +00:00
Charlie Lao 26e28089c8 Vulkan: Improve RPCommandHelper::isImageWithLayoutTransition()
RenderPassCommandBufferHelper::isImageWithLayoutTransition() was added
in crrev.com/c/3366014 to detect if there is a barrier inserted for the
renderPass. If yes, we have to endRenderPass before compute shader,
since compute dispatch goes into outsideRenderPassCommands, which writes
into primary command buffer before renderPassCommands. Otherwise the
compute dispatch will be using the image before the actual layout
transition occurs, which is wrong. But to detect if the image has a
layout/barrier transition in the renderPass, it maintains an
angle::FlatUnorderedSet. With recent change for per active context queue
serial, we can use the queue serial to detect this. This CL adds a
queueSerial for image layout/barrier change and compares it with
RenderPassCommands' queueSerial to decide if the renderPass has a
layout/barrier for the image.

This CL also did some minor clean ups: Removed unused API
ContextVk::getActiveImages().  Removed writtenByCommandBuffer() check in
CommandBufferHelperCommon::bufferWrite() before calling
setWriteQueueSerial, since the check is more expensive than set.  Added
setQueueSerial call in OutsideRenderPassCommandBufferHelper::imageWrite
to be consistent with imageRead. (This might be fixing a bug here).
Replaces a few retainResource(image) to image->setQueueSerial for
consistency.

Bug: b/264472911
Change-Id: I74badd6b8a35f86640e42d330a1a709ccfb961c3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4136948
Reviewed-by: Yuxin Hu <[email protected]>
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2023-01-05 22:29:05 +00:00
Yuxin Hu c4b95929b8 Revert "Reland "Make ANGLE program version only dependent on data that matters""
This reverts commit 61728827d2.

Reason for revert: it breaks aosp build: https://android-review.git.corp.google.com/c/platform/external/angle/+/2374971. Build error: `FileNotFoundError: [Errno 2] No such file or directory: 'angle_code_affecting_program_serialize'`

Original change's description:
> Reland "Make ANGLE program version only dependent on data that matters"
>
> This is a reland of commit c303758fbc
>
> Changes made on top of original commit
> 1. Enable execution permission on python script
> program_serialize_data_version.py
> 2. Remove unused list in libGLESv2.gni
> 3. In angle/BUILD.gn, change file path from
> "relative to angle_root", to "relative to root_build_dir",
> so that inside the script program_serialize_data_version.py,
> we don't have to find the absolute path of the code files for
> hashing.
>
> Original change's description
>
> > This change introduces a new variable ANGLE_PROGRAM_VERSION
> > to track the version of ANGLE source files that affect shader
> > program serialization/deserialization. This change include more
> > source files than necessary, to serve the purpose of a conservative
> > jumping off point. We will narrow down the list of files for
> > ANGLE_PROGRAM_VERSION hash generation in the future.
>
> > Add a new script program_serialize_data_version.py that will
> > be triggered during the build when the related source files changed.
> > The script will generate a hash and the hash size from the related
> > source files. In program serialization/deserialization and cache
> > key generation, we will use this hash value instead of the entire
> > ANGLE git hash. When the hash value changed, we know that the
> > related source files changed, and we should invalidate the program
> > cache and re-generate the blob cache / program binary.
>
> > Bug: angleproject:4981
> > Change-Id: I2fb609416738d459d3289190c232c2d797ba58e3
> > Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4072215
> > Reviewed-by: Shahbaz Youssefi <[email protected]>
> > Reviewed-by: Cody Northrop <[email protected]>
> > Reviewed-by: Jamie Madill <[email protected]>
> > Commit-Queue: Yuxin Hu <[email protected]>
>
> Bug: angleproject:4981
> Change-Id: Iaa9eb0ab33439197bc30d03064fc245ea7ef1ea8
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4113445
> Reviewed-by: Amirali Abdolrashidi <[email protected]>
> Reviewed-by: Cody Northrop <[email protected]>
> Commit-Queue: Yuxin Hu <[email protected]>

Bug: angleproject:4981
Change-Id: If7d3779c8f40dafa9a9c057f669ab53d0494526e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4140138
Bot-Commit: Rubber Stamper <[email protected]>
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Commit-Queue: Yuxin Hu <[email protected]>
2023-01-05 21:45:42 +00:00
Charlie Lao 341f290837 Vulkan: Remove the car_chase skip
This should now be fixed by crrev.com/c/4133548. Re-enable the test for
pixel6.

Bug: angleproject:7916
Change-Id: Ice0adc2c81c797f31354e086e5606744941de311
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4137290
Reviewed-by: Yuxin Hu <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
Reviewed-by: Amirali Abdolrashidi <[email protected]>
2023-01-05 21:10:54 +00:00
Kenneth Russell 43c5849f56 Add colleagues at Apple who have contributed to ANGLE.
This is just for bookkeeping purposes.

Bug: angleproject:7932
No-Try: True
Change-Id: I1e88145c762198e60cc293382ba1c39131b0458c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4136556
Commit-Queue: Kenneth Russell <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2023-01-05 21:06:49 +00:00
Jamie Madill 18950e646c Capture/Replay: Fix unpack alignment inconsistency.
We were checking the current value of the unpack alignment in
the replay when we should have been comparing vs the set value
in the context.

Bug: angleproject:7816
Change-Id: Ib7e6ed785e07e06a7f55f4b727f640912b75b7a6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4139299
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
Auto-Submit: Jamie Madill <[email protected]>
2023-01-05 19:50:09 +00:00
Geoff Lang d252583465 Metal: Mark ES3.0 as complete
Bug: chromium:1322521
Change-Id: I224a25732f759eebd6706b7f5bf26fe78307cb02
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4139298
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2023-01-05 19:47:45 +00:00
Charlie Lao 2662f28fad Vulkan: Fix imageRead from RP and outsideRP simultaneously
When a texture is been sampled from both fragment shader and compute
shader, you will have the same VkImageLayout. We will not try to end
renderPass, which means you end up running into similar situations with
OutsideRenderPassCommandBufferHelper::bufferRead where an image is
already read accessed by a started renderPass and now read accessed by
an outsideRenderPassCommands. Since renderPass has greater queueSerial,
we should not tag it with outsideRenderPassCommands' queueSerial.

This CL also adds two tests, one for color texture and another for
depth texture (which is car_chase uses). Both exposes the same bug.

Bug: angleproject:7916
Change-Id: I840ca8947caeb7a96c4c9ccb7c9eca2476837c9c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4133548
Reviewed-by: Yuxin Hu <[email protected]>
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2023-01-05 19:34:01 +00:00
Alexey Knyazev 2e086405e0 Metal: Implement ANGLE_clip_cull_distance
Emulate clip distance varyings as they are not
available in Metal fragment shaders.

Drive-by: skip rewriting unused pipelines.

Bug: angleproject:7904
Change-Id: Iabc37ffe6e8c9e2d0fb34e508ae2512a200c8351
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4124235
Commit-Queue: Alexey Knyazev <[email protected]>
Reviewed-by: Kyle Piddington <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2023-01-05 19:23:11 +00:00
Yuly Novikov d88464de36 Skip 2 slow trace perf tests on Win Intel
five_nights_at_freddys on Vulkan
pubg_mobile_launch on native

Bug: angleproject:7929
Change-Id: Ie6ebcc3db616a55fdbb9f1a0d67c950b80dc2010
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4133268
Reviewed-by: Jamie Madill <[email protected]>
Auto-Submit: Yuly Novikov <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2023-01-05 19:16:24 +00:00
Jamie Madill d0fa9fe214 Capture/Replay: Fix GetProgramInterfaceiv write location.
This was mistakenly writing to the read-only binary data blob.
Instead properly write to the read buffer.

Bug: angleproject:7887
Change-Id: I039981b0bd03983542f6432d1091651c1d553479
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4135796
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Auto-Submit: Jamie Madill <[email protected]>
2023-01-05 16:00:33 +00:00
angle-autoroll 3604f6b871 Roll Chromium from 9b6c0a64c3c0 to f676f874381a (435 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/9b6c0a64c3c0..f676f874381a

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/80991d5790..e273177111
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/c5a91cd488..dc4013e8dd
* third_party/abseil-cpp: https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp/+log/6a7478b495..e38c901c6f
* third_party/android_build_tools/lint: J-5WRwQBFHGawLX-f-wZAyfdYMmyLPTltnrTVG1HrvwC..0X1mSg1M9Q3Dv6pcOnX0mK0YR_LyTxyT3oRbYk5uxQ8C
* third_party/android_build_tools/manifest_merger: lUT6vCuXPnPR-G-V3k69iMWuFtVOzwED-IwaHqYT4AcC..7ZPeHZjITxCcJzrEuxb5yznF7h65-RTQrbhzILJz4_gC
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..038b25e395
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/252b19866a..58a343c88b
* third_party/fuchsia-sdk/sdk: version:11.20230104.0.1..version:11.20230104.1.1
* third_party/r8: GBS8IZ2wumMlodGQUSzolGjJELkBWiZDNIEOLGiV1MsC..fCfmTCTodJobBFr8fnGgzGEOm8w4aaHiVjWr5Id9cEwC
* third_party/zlib: https://chromium.googlesource.com/chromium/src/third_party/zlib/+log/18d27fa10b..fa5dc47500
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/2c8d802803..7c3502515b
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/0f2155f845..b26e426e04
* tools/skia_goldctl/linux: GYJyu-6ZtuFKlycWv9v7SFg61ONNNobNlfP0HTV6IGQC..E46nXQa9dcFdViDiaWhmdecJ-XgdTDLkrfaGq45UlsUC
* tools/skia_goldctl/mac_amd64: SVMraIHmdNooMzoPH_0l0pHjwN9wgULMxNntBbrNQyMC..rfHNzii-7hBOdsmGW8WeOM_JU0csp7fQgf-6p8cPyZYC
* tools/skia_goldctl/mac_arm64: CklLGpnehytIF37cw7TK3rU3GqE_NzN76x9OERwfrNMC..WMPFVGxAsM-r610JEQHRGWzuoZ72se528q3xXCHUeDAC
* tools/skia_goldctl/win: jmDxbBm43jkyCFWbnBLpWu8GADl05R5x2kV-ttxKaUgC..NlbXdAFIb05vtC14fXZwj8gK67uZHdlqPVPBbNhpU1QC
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: Ib00b0ef260ec251dd70e782b7bdbe2787ed2924a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4137295
Bot-Commit: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2023-01-05 07:57:27 +00:00
Yuxin Hu 5f1ab1d188 Fix Deferred Flush Bug On Android Hardware Buffer
When does app read from Android Hardware Buffer
is outside of ANGLE's control. If we defer glFlush,
it is possible that when the app is reading from
AHB, the commands have not been flushed and executed,
causing app to read unexpected data. This change
adds a check to not defer glFlush when the Framebuffer
draw attachment is Android Hardware Buffer.

Bug: b/262886794
Change-Id: Ie0606f71b1a4f4f20511b7327e7ffb8c096ac727
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4126700
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
Commit-Queue: Yuxin Hu <[email protected]>
2023-01-05 00:41:28 +00:00
Loic Sharma 32175d8a6d Address Visual Studio 17.4 build issues
The `SpirvType` is used as a key in a hash map. When using Visual Studio
17.4, the build fails as `SpirvType`'s equality operator is not defined.
This declares `SpirvType`'s equality overload on its header file.

Bug: angleproject:7925
Change-Id: If5013df36eb9c33bba88eebe8752df7808b02ff5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4136932
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2023-01-04 21:09:26 +00:00
Jamie Madill 968c429e27 Tests: Use ISOLATED_OUTDIR for test artifact directory.
This should fix the missing CAS outputs on the bots.

Bug: angleproject:7926
Change-Id: Id09e5ccc19a454e2c0bf63076788187f3c7ef24f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4135158
Commit-Queue: Yuly Novikov <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Auto-Submit: Jamie Madill <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
2023-01-04 20:29:14 +00:00
Roman Lavrov 056f80448f Perf tests: write metrics to file and read from merge script.
The idea behind is to save metrics in a structured output with
full context so that we don't have to parse stdout and
reconstruct that context (e.g. which test was running when
the output was printed etc).

Note: we already have a "histogram" file (addHistogramSample)
written but it is structured using some UUID-based ids making its
digestion more complicated (https://anglebug.com/7299#c3).
This CL just writes events as one-json-per-line
simplifying downstream handling and debugging.

Just a sanity check / logging in the merge script for now.

Bug: angleproject:7299
Change-Id: I56dada643eceef180ce9bb1aa9ae6a641ea41e4c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3945112
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
2023-01-04 20:02:21 +00:00
Gregg Tavares 91ff986cc9 Metal:Switch to NoWait in eglReleaseTexImage
Now that eglWaitUntilWorkScheduled is implemented in ANGLE
and called in Chromium we can set this to NoWait

Bug: angleproject:7890
Change-Id: Ib6fbda18b940873409653a968aa956bc728025a8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4117714
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Gregg Tavares <[email protected]>
2023-01-04 19:50:19 +00:00
Cody Northrop b354667ef3 FrameCapture: Fix tracking of glCopyImageSubData
When tracking texture updates during glCopyImageSubData, choose
an enum supported by PackedEnum when looking up the textureID.

Also add a test for a common pattern used by the Unreal Engine that
trips up FrameCapture.

Test: CopyImageTestES31.CubeMapCopyImageSubData/*
Bug: angleproject:7913
Change-Id: I6c0fee69064cc6dc81177093ec9461dd5ccc152a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4126449
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2023-01-04 19:10:59 +00:00
Yuly Novikov f2290d80cf Re-enable tests on win10-x64-intel-perf
Bot was switched to new GPU and driver in crrev.com/c/4133266,
so hopefully BSOD issue is fixed.

Bug: angleproject:6332
Change-Id: I4b7d5ab6b8dc559f75b487a85ec453876ac13932
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4133267
Commit-Queue: Jamie Madill <[email protected]>
Auto-Submit: Yuly Novikov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2023-01-04 17:55:22 +00:00
Cody Northrop a0939325f6 Tests: Add Catalyst Black trace
Test: angle_trace_tests --gtest_filter="*catalyst_black*"
Bug: angleproject:7921
Bug: angleproject:7924
Change-Id: I626d6790ef602f3ca09c9c9a4e03c5df32a985ba
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4133886
Reviewed-by: Roman Lavrov <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2023-01-04 17:38:53 +00:00
Jason Macnak 2256c5486e Map AHARDWAREBUFFER_FORMAT_R8_UNORM to GL_R8
Bug: b/259551816
Test: cvd start --gpu_mode=guest_swiftshader
Test: atest librenderengine_test
Change-Id: I32a7b83494426e291cc93fe2b5f245eab6a54b0a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4112149
Commit-Queue: Jason Macnak <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
2023-01-04 17:22:19 +00:00
Jason Macnak 6fdac95a56 Mirror Android AHB formats in ANGLE owned enum
The existing code seems to try to keep all AHB formats defined in
android_util.cpp (potentially in an attempt to simplify format
conversions?). However, trying to avoid redefinition errors when
conditionally re-defining the AHB formats across builds/branches
is difficult.

IIUC, there are two levels at play when building for Android:

1) "target level": the level of the phone/device you are building
   for.

2) "build level": the level of the repository/checkout you are
   building from.

The "target level" (__ANDROID_API__) cannot be used to guard the
definitions in android_util.cpp because it is possible to build
for an older device in a newer branch. For example, suppose
AHARDWAREBUFFER_FORMAT_X was introduced in Android T. If ANGLE
tried to redefine AHARDWAREBUFFER_FORMAT_X in android_util.cpp
with the guard "if __ANDROID_API__ < T", re-definition errors
would still occur when building for Android S devices (
__ANDROID_API__ set to S) from inside of an Android T branch
because the format would still be defined in
android/hardware_buffer.h. A failure of this type can be seen in
aosp/2308065 which tried to guard AHARDWAREBUFFER_FORMAT_R8_UNORM
with "if __ANDROID_API__ < 33". Additionally, Android sets
__ANDROID_API__ to 10000 before releases are cut and it is
supposed to be fixed at release time. However, this has
been observed to not be fixed on some less maintained side
branches.

Detecting the "build level" seems to be quite difficult. When
building from outside of Android, this is the NDK level which
can be detected using __ANDROID_NDK__ and __NDK_MAJOR__.
When building from inside of Android, this is the latest level
available on your specific branch. I believe this can only be
found by incrementally checking for the existence of the various
__ANDROID_API_R__, __ANDROID_API_S__, etc defines. This alternative
can be seen in https://crrev.com/c/4039066. However, this is very
difficult to find and read.

Instead, let's just define ANGLE's own enum which mirrors the
Android enums which can be used without having to worry about
the current build system or release/branch.

Bug: b/259551816
Test: cvd start --gpu_mode=guest_swiftshader
Test: atest librenderengine_test
Test: ANGLE presubmit
Test: Android presubmit on aosp/master (aosp/2360445)
Test: Android presubmit on aosp/android13-gsi (aosp/2360447)
Test: Android presubmit on aosp/android11-gsi (aosp/2360520)
Change-Id: I62f12cb0e1cc4b3b24aab7b85f39360a2cd2e438
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4112148
Commit-Queue: Jason Macnak <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2023-01-04 17:20:09 +00:00
Yuly Novikov 6382dd74de Switch Win Intel to Optiplex 7080 by rolling Chromium
Optiplex 7050 had HD 630 GPU PCI ID 8086:5912.
Optiplex 7060 had UHD 630 GPU PCI ID 8086:3e92.
Optiplex 7080 has UHD 630 GPU PCI ID 8086:9bc5.

Also upgrading the driver from 26.20.100.8141 to 31.0.101.2111.
And the Windows 10 version from 1909 to 21H1.

Re-enable angle_restricted_trace_gold_tests on Intel,
since they looked stable on the experimental bot.

Stop running tests on the experimental win10-x64-exp-intel.

Roll chromium_revision 87b7ed3032..9b6c0a64c3 (1088609:1088686)

Change log:
https://chromium.googlesource.com/chromium/src/+log/87b7ed3032..9b6c0a64c3
Full diff:
https://chromium.googlesource.com/chromium/src/+/87b7ed3032..9b6c0a64c3

Changed dependencies
* testing:
https://chromium.googlesource.com/chromium/src/testing/+log/9c112b5654..c5a91cd488
* third_party/catapult:
https://chromium.googlesource.com/catapult.git/+log/{catapult_..a404e6d108
* tools/mb:
https://chromium.googlesource.com/chromium/src/tools/mb/+log/eb0a826405..2c8d802803
* tools/perf:
https://chromium.googlesource.com/chromium/src/tools/perf/+log/7e2765e6fa..0f2155f845
DEPS diff:
https://chromium.googlesource.com/chromium/src/+/87b7ed3032..9b6c0a64c3/DEPS

No update to Clang.

Bug: chromium:1349828, angleproject:7708
Change-Id: I8af85de8334c01a5cdd62149ab30be9eaba5d07a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4133266
Auto-Submit: Yuly Novikov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2023-01-04 16:29:34 +00:00
Alexey Knyazev 7c08f0a559 Skip ClipCullDistanceTest.SizeCheckCombined on TSAN
Bug: angleproject:7922
Change-Id: I19c9ce729be8bf7a68517f340cd001332f22be08
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4134844
Auto-Submit: Alexey Knyazev <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2023-01-04 15:46:03 +00:00
angle-autoroll 24ac26c3f0 Roll Chromium from 0f261e9e8ec1 to 87b7ed3032e5 (483 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/0f261e9e8ec1..87b7ed3032e5

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/51292789ec..80991d5790
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/59f8af36bb..9c112b5654
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..a404e6d108
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/5b0c934026..252b19866a
* third_party/fuchsia-sdk/sdk: version:11.20230103.0.1..version:11.20230104.0.1
* third_party/r8: F3_m_gPJBJRUVJToRwtfZCgFuh5TkWnIGUOD6TaHVfkC..GBS8IZ2wumMlodGQUSzolGjJELkBWiZDNIEOLGiV1MsC
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/7e4e3bf6f7..eb0a826405
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/522525fc09..7e2765e6fa
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: Ibf692bc002547908507eb3204a991aa032dfe33b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4133899
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2023-01-04 08:01:32 +00:00