Commit Graph
18832 Commits
Author SHA1 Message Date
Roman Lavrov b9bdc53bab Make TestEventListener and inner class of TestSuite.
Avoids having to pass dependencies to the class as it's automatically a
friend; external linkage sadly but such is life.

Bug: angleproject:7299
Change-Id: I5726dcab5a1a98b93c0713073cd02d6eb3a8e216
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3693826
Commit-Queue: Roman Lavrov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-07 21:08:58 +00:00
Jamie Madill 43c45bc658 infra: Add Linux AMD test spec.
The spec currentlty contains no tests. We can add those in
once the basic config is working.

Bug: angleproject:7390
Change-Id: I41ff08b11946c955dff67ae4b90bee7cab0dccb3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3691047
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
Auto-Submit: Jamie Madill <[email protected]>
2022-06-07 19:14:38 +00:00
Geoff Lang d670b5a36b GL: Disable texture border clamp on imagination.
IMG GPUs generate INVALID_ENUM when setting the texture border color.

Bug: angleproject:7405
Change-Id: I04a28d36943c143ad5e18bf80e618230b116a632
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3692265
Reviewed-by: Peng Huang <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2022-06-07 17:49:48 +00:00
Chris Dalton d9a2027ff3 Add a test for volatile aliases of the same shader image
Bug: angleproject:3032
Bug: angleproject:7343
Bug: angleproject:7398
Change-Id: I6ea6abea0b9dafd93bc297499df23be27904c996
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3656314
Reviewed-by: Stephen White <[email protected]>
Commit-Queue: Stephen White <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-07 17:27:58 +00:00
Antonio Caggiano 68634d5c73 Vulkan: Enable VK_EXT_platform_wayland
Bug: angleproject:6902
Change-Id: I6a27e3f610bd48dd31937255b287b11fe84c05ca
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3528756
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2022-06-07 17:16:48 +00:00
Lubosz Sarnecki 34d3093062 Tests: Add Shadow Fight 3 trace.
Test: angle_perftests --gtest_filter="*shadow_fight_3*"
Bug: angleproject:7401
Change-Id: I7a1262560c577c53feeef83f4ebb69b795d4d62b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3687715
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Lubosz Sarnecki <[email protected]>
2022-06-07 17:13:18 +00:00
Stephen White 52e560eae4 Remove suppressions for now-passing ES 3.1 tests.
Bug: angleproject:1442, angleproject:1951
Change-Id: I61f9c39711f77d48a401ad98ef4ead4c0f17fe2a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3693821
Commit-Queue: Jamie Madill <[email protected]>
Commit-Queue: Stephen White <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-07 17:04:48 +00:00
Antonio Caggiano 35839293a4 Vulkan: Fix mutable format check
Check directly with enum instead of using boolean logical operator.

Bug: angleproject:7065
Change-Id: I98b077c9ab18690d915ed3387a4f19404925daaf
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3645123
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-06-07 16:59:38 +00:00
Shahbaz Youssefi 4dde8590e8 Remove suppression for passing tests
Bug: angleproject:2976
Change-Id: I5e899c4d4fcc68b52b7b131dae6011a6129ab16b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3690748
Commit-Queue: Rubber Stamper <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
Auto-Submit: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2022-06-07 16:30:28 +00:00
Amirali Abdolrashidi 3b988fef30 Vulkan: Remove enableLineRasterEmulation
* Removed the Bresenham line raster emulation specialization
constant, along with related variables and functions.

Bug: angleproject:7366
Change-Id: If17c8ce9b459ad801bae8e887e5674bd9a3ff2bf
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3680860
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
2022-06-07 16:21:28 +00:00
Shahbaz Youssefi 593cd597a3 Roll Chromium from 4697545681bd to 4658acb376d4 (377 revisions)
Includes modifications to libpng's BUILD.gn.  The change that fixes the
roll is the removal of the assembly source file which doesn't conform to
BTI.  Some additional changes are taken from Chromium's build script.

https://chromium.googlesource.com/chromium/src.git/+log/4697545681bd..4658acb376d4

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/1ec4567f5a..565e71d210
* buildtools/third_party/libc++abi/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxxabi.git/+log/c30c515c84..11395e54b4
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/2c4970601e..1644d070bf
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/32159ca2ee..3215569cc6
* third_party/android_build_tools/aapt2: kZqQH92bSO1p0a7_hcrana_9YjtSBU1te7TEtNVBoCUC..jziPmg_EUjoj-eSkO24eMaf5ylm449Q7BKO1-ga2tbgC
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..45853b3700
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/89b222dba5..138bff2823
* third_party/fuchsia-sdk/sdk: version:8.20220604.2.1..version:8.20220607.0.1
* third_party/turbine: aSG-acwWsASjZaTfSzYcOuM9qoD6S_o3JL6iIFslVdUC..A5bkaoLBc1JYa6Xv31jYUCK5TnXYCbxRrA4FBPXXcWgC
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/3e5ac252f7..dbd1cbe518
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/6cc9656eb9..b7274f10ef
No update to Clang.

Bug: chromium:1145581
Change-Id: I0bbcb1d8e147882e85de4d7ce7507b211f7b6871
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3690751
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-07 15:21:18 +00:00
Lubosz Sarnecki d66d9e7b16 Tests: Add Rush Royale trace.
Test: angle_perftests --gtest_filter="*rush_royale*"
Bug: angleproject:7399
Change-Id: I1cfc1304331eac1903750736565eae041d4e00d0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3687714
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2022-06-07 14:15:28 +00:00
Cody Northrop aac68adcf9 Capture/Replay: Track dirty state per EntryPoint for Reset
This CL introduces a new concept of tracking whether an entry
point has been called.  If so, emit Reset calls designed specifically
for that entrypoint.

This will likely only be useful for one dimensional state binding
calls that can easily be tracked and set back.

Only support for EntryPoint::GLUseProgram is added at the moment, but
any entry point can be added.

Reset will now set the active program back to what it was in Setup.

For example:

  void ResetReplay()
  {
    ...
    glUseProgram(gShaderProgramMap[2]);
    UpdateCurrentProgram(2);
  }

Test: Animal Crossing MEC, Star Wars KOTOR MEC
Bug: angleproject:7307
Bug: angleproject:7353
Change-Id: I19d238ca13bbfb619e1cf8ed86f15ed6c4255a61
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3656827
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Lubosz Sarnecki <[email protected]>
2022-06-07 13:43:52 +00:00
Stephen White cb9e1235f6 D3D11: fix UAV handling.
For setting UAVs, Microsoft has provided two APIs:

ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews()
for pixel and vertex, and
ID3D11DeviceContext::CSSetUnorderedAccessViews()
for compute.

They both take very similar arguments, perform similar functions, but
have one crucial difference: the former will clobber any existing UAV
bindings that are not specified in the call, while the latter will not.
The initial implementation of non-compute UAVs in ANGLE didn't
accomodate this, and sets UAVs individually, as is done for compute,
which clobbers any UAVs set in a previous call.

The fix is to collect all UAVs required for a draw or compute pass,
and set them all at once. This required reworking the internal dirty
bits to reflect the actual D3D requirements (SRV and/or UAV usage),
and to split the sync functions to set only SRV or UAV state.

Also add a two-SSBO fragment shader test.

Bug: angleproject:7385
Change-Id: I0c98e1506d56eccf1db446c0be808f2f3020ae1e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3690735
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Stephen White <[email protected]>
2022-06-07 12:59:08 +00:00
Jamie Madill 0260255b47 Fix printing of non-standard renderers.
Bug: angleproject:7396
Change-Id: I18cfadbc58b71259efd414cd7ef90a45719f9b1e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3690736
Reviewed-by: Yuxin Hu <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2022-06-07 12:38:58 +00:00
Rohit Rao 4b911686c6 Converts from sprintf() to snprintf().
sprintf() is deprecated in Xcode 14, so update to safer equivalents in
order to keep the compiler happy on iOS and macOS.

Bug: chromium:1331345
Change-Id: Id5348088bf69cbd360d9251e6323596cb710666d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3690747
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-07 12:38:38 +00:00
Shahbaz Youssefi ce3c0fe901 Vulkan: Make depth-correction uniform controlled
This change makes sure SPIR-V transformations are not required for depth
correction, having the number of potential pipelines.

Bug: angleproject:5881
Change-Id: If3f66b34bdd1127ae588cbc822ea7cf01fa8621f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3691801
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
2022-06-07 03:13:47 +00:00
Geoff Lang 4868e5a700 Log the fully formatted message for internal errors.
The formatted message is generated but not used. This is critical to
know the file and line that generated the error.

Bug: chromium:983167
Change-Id: Id4bb1c5b49fa1004728948d87e0270687b82992c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3690738
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2022-06-06 23:26:37 +00:00
Charlie Lao b186991a54 Vulkan: Remove non-current vertex array from buffer's observer list
When app binds a buffer to many VAOs, any buffer modification have to
loop over all VAOs that uses that buffer, even though all these VAOs are
not current except one VAO. That causes significant CPU overhead.
black_desert_mobile has this type of usage. This CL checks number of
observers on each binding and if there are excessive observers, it
removes VAO from the buffer's observer list when it becomes non-current
and adds back to observer list when it becomes current.

This CL reduces CPU overhead of black_desert_mobile (as measured with
--offset --minimumgpuwork)  from 21ms to 3.69ms, on par with native GLES
driver. Note that this CL only touches glBindVertexArrayObject call code
path, so no impact to apps not using VAOs. There is also no measurable
CPU time regression on a few other app traces that uses VAOs.

Bug: angleproject:6371
Change-Id: I6b1589f3e3c768d56c1c95cebdb577e3e256737f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3669603
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-06-06 21:16:17 +00:00
Shahbaz Youssefi 2fcf9a9295 Suppress failing test
Bug: angleproject:7392
Change-Id: I4c0ba6985bcf6ecc833bd6e4719f78e5586402a1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3691802
Commit-Queue: Rubber Stamper <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
Auto-Submit: Shahbaz Youssefi <[email protected]>
2022-06-06 17:08:17 +00:00
Roman Lavrov b7bd08080e Support running end2end tests.
There is no batching though so all tests matching the filter will be ran
at once which will block without any output until evertyhing is done
(android runner runs tests in batches of 256 IIRC).

Also make suite arg positional and explicitly list supported tests.

Bug: angleproject:6854
Change-Id: Ibe108f24d6c3ec8b966eda1cf9ae92119a517548
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3691048
Commit-Queue: Roman Lavrov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-06 15:39:33 +00:00
Antonio Caggiano 28c59d6345 Vulkan: Fix Wayland Display DRM formats
Check whether relevant renderer feature is enabled before querying
supported DRM formats.

Bug: angleproject:6902
Change-Id: Ib6fa28c75f2b7e4c8a750babe97bdeddd2fa1059
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3664477
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2022-06-06 14:56:37 +00:00
Roman Lavrov b71c642753 Add a wrapper script to run traces using android_helper.
Also add missing `appops set MANAGE_EXTERNAL_STORAGE` that appears to be
necessary on newer builds (catapult does it starting from Android 11).

Add a hash check to skip transferring .gz files that are already there.

Bug: angleproject:6854
Change-Id: Ib612d1235fe1274b8fea47718af8389e8810d34e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3679486
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
Auto-Submit: Roman Lavrov <[email protected]>
2022-06-06 14:23:15 +00:00
angle-autoroll 611f0e0d85 Roll Chromium from 113f00d1a057 to 4697545681bd (509 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/113f00d1a057..4697545681bd

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/a56852668f..1ec4567f5a
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/125ac3cd81..2c4970601e
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/6408b293c0..32159ca2ee
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..d8360ff775
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/04663d61d1..89b222dba5
* third_party/fuchsia-sdk/sdk: version:8.20220531.3.1..version:8.20220604.2.1
* third_party/r8: L2ZGhyJ-Hc8AnXHo5dhtNdI2F2bC_9yi2lqTbJ98sLcC..9ZYYzSVt4L6QGnf272Wm7wxsJ4VH77Dh2fel6JB9nOcC
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/4e79fda976..a455f338a1
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/1c2c24f809..3e5ac252f7
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/2ea3b1abfa..6cc9656eb9
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: Ic599185e0149a083438eb92863ab651cb3bbb3c6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3691413
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-06-06 09:56:17 +00:00
Mark Lobodzinski 7fb021b08e Reland "Add Vulkan backend support for texture labels"
This is a reland of commit 1afb80587e

Added check to ensure vkSetDebugUtilsObjectName fcn ptr is valid
before use. Fixes failures on mac-swangle-chromium-try-x64.

Original change's description:
> Add Vulkan backend support for texture labels
>
> Add onLableUpdate support for textures in the Vulkan backend.
>
> Bug: b/229105865
> Change-Id: Id9e5b2b81352e97b7843a63f27709739005dc2f3
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3645854
> Reviewed-by: Ian Elliott <[email protected]>
> Reviewed-by: Shahbaz Youssefi <[email protected]>
> Reviewed-by: Jamie Madill <[email protected]>
> Commit-Queue: Ian Elliott <[email protected]>

Bug: b/229105865
Change-Id: I994da6db2771671c204e4ab01c69912c1be4a48f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3674296
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2022-06-03 19:43:45 +00:00
Stephen White ccf53e3d15 Translator/HLSL: fix image load/store handling.
Don't output the image load/store string unless we're outputting
HLSL 4.1 (D3D11). Also do some preventative initialization.

Bug: chromium:1327872
Change-Id: Ic757fd6c0c92637f565dc39469ee60dfae145353
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3687335
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Stephen White <[email protected]>
2022-06-03 19:33:15 +00:00
Charlie Lao 2fec519f6e Avoid dirty texture swizzle state when there is no change
Some applications (for example surfaceflinger on Android) may set
texture swizzle at every call even though there is no actual swizzle
change. But we are not checking against redundant state calls and is
always setting texture's DIRTY_BIT_SWIZZLE_* bits. This caused vulkan
backend free image views which in turn forces VkFramebuffer recreation.
This CL check the swizzle state and only set dirty bits if it actually
changes.

Bug: b/234602034
Change-Id: I7fab96a957c0b7a7ed318eaccea2d42146ca23cd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3688732
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2022-06-03 19:11:25 +00:00
Charlie Lao d655ad292d Vulkan: Add tests for FramebufferCache growth bugs
When texture attached to FBO gets respecified, we shouldn't keep growing
FramebufferCache.

When texture attached to fbo get glTexParameteri(GL_TEXTURE_SWIZZLE_R)
call with the same value, we should also not destroy/recreate
framebuffers (in fact should not recreate VkImageView).  We ran into
this usage pattern on surfaceflinger.

When texture attached to fbo get glTexParameteri(GL_TEXTURE_SWIZZLE_R)
call with different value, we should also not destroy/recreate
framebuffers (in fact should not recreate VkImageView).  We ran into
this usage pattern on surfaceflinger.

Bug: b/234769934
Bug: b/234602034
Change-Id: I9fc881486f95cc3da843f50fa0a8cdcbfd4fc625
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3681081
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Charlie Lao <[email protected]>
2022-06-03 18:25:55 +00:00
Shahbaz Youssefi a951686518 Vulkan: Output cache look up feedback in pipeline graph
Bug: angleproject:6565
Change-Id: I12bb9ab5756860de9ba26d6b4a9429a78b65df39
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3686029
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2022-06-03 18:07:35 +00:00
Geoff Lang bfab7e60a1 Ignore eglBind/ReleaseTexImage calls for lost contexts.
eglBindTexImage and eglReleaseTexImage no-op when no context is
current. Extend this to lost contexts to match the behaviour of making
a GL call on a lost context.

This avoids potential unexpected bad accesses in the backends.

Bug: chromium:1316578
Change-Id: I7b309c297e0c803019720733dee2950abb4c4b5f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3683869
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Alexis Hétu <[email protected]>
Reviewed-by: Alexis Hétu <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2022-06-03 16:27:45 +00:00
Lubosz Sarnecki ebdbae9b7a crash_handler_posix: Fix symbol path resolution.
Use POSIX realpath function to resolve absolute paths of modules.
Fix incorrect path resolution for libVkLayer_khronos_validation.so,
which is given a relative path from the executable directory instead of
cwd.
Leave the treatment of overlapping paths in place, which is only
required if a backtrace is triggered during the runtime of
ScopedVkLoaderEnvironment.

Remove symlink resolution, as it is done by using realpath.
Print warning if symbol path cannot be resolved.

This fixes the following error:
/usr/bin/addr2line: '/home/user/angle/angle/angledata/../
libVkLayer_khronos_validation.so': No such file

Bug: angleproject:7311
Change-Id: I46f4af93a4a27d8d09c3786933dbbb8390aa34eb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3644584
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Lubosz Sarnecki <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-03 08:19:34 +00:00
angle-autoroll ee338504a5 Roll Chromium from 795b7900dc69 to 113f00d1a057 (497 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/795b7900dc69..113f00d1a057

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/d95e42df71..a56852668f
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/86ab9dd743..125ac3cd81
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/d857d1dbbe..6408b293c0
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..3a2e446a98
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/8f1fea025d..04663d61d1
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/fd520dc44a..4e79fda976
* tools/mb: https://chromium.googlesource.com/chromium/src/tools/mb/+log/09576ae257..1c2c24f809
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/6b7d5a8e41..2ea3b1abfa
No update to Clang.

Bug: None
Tbr: [email protected]
Change-Id: I42b43272cf510646267d2853ab46ac53963a2fa3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3689050
Bot-Commit: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2022-06-03 08:02:56 +00:00
Lubosz Sarnecki cdad936363 crash_handler_posix: Use execvp.
To avoid using an absolute path for the addr2line executable, use execvp
instead of execv to make the shell search for the executable in the
PATH.

Bug: angleproject:7310
Change-Id: I777e5f369011d910afffe86f8fb2372dc333a665
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3644582
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Lubosz Sarnecki <[email protected]>
2022-06-03 07:34:26 +00:00
Kimmo Kinnunen 415ff51b80 Metal: Remove use of ANGLE_MTL_AUTORELEASE from mtl_state_cache
The code doesn't use autoreleasepool, instead all instances are
subsequently retained.
Use AutoObjCPtr to adopt the reference and maintain ownership
explicitly.

This is work towards minimizing memory leaks by minimizing the
use of autoreleasepool and accounting for the references explicitly.

Bug: angleproject:6833
Change-Id: I77fe323683e4abb9b4ab17723949c56dd636ae32
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3347643
Reviewed-by: Jamie Madill <[email protected]>
Auto-Submit: Kimmo Kinnunen <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Kenneth Russell <[email protected]>
Reviewed-by: John Cunningham <[email protected]>
2022-06-03 06:33:54 +00:00
Shahbaz Youssefi 53ec886e41 Vulkan: Externally synchronize the pipeline cache
In preparation for a future change that requires this as it may perform
pipeline cache merges during creation of pipelines.

Bug: angleproject:5881
Change-Id: Ic7921b781aa773ae23b60a0bb6fa2111b1fc401e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3679479
Reviewed-by: Charlie Lao <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2022-06-03 02:55:34 +00:00
Kyle Piddington 2f6dcf7738 Metal shaders fail to compile with "error: unknown type name 'uint'
Replace 'uint' with uint32_t in emitted MSL. Some legacy configurations
are showing compile errors when using this type.

Bug: angleproject:7384
Change-Id: I7f262d417eaf46eed71da24e8b2c110b11677ab6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3684952
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Kyle Piddington <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
2022-06-02 22:42:34 +00:00
Brandon Schade eb282de025 Vulkan: Add feature to use VK_FILTER_LINEAR for YUVConversionInfo
VK_FILTER_NEAREST is default for chromaFilter in ConversionInfo.
Add feature to allow VK_FILTER_LINEAR to be used instead. This
feature controls the quality when sampling YUV images.

Bug: angleproject:7382
Change-Id: I3f67d7620d94b5b33c42754adfef84b97c798637
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3684351
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Trevor Black <[email protected]>
Reviewed-by: mohan maiya <[email protected]>
Commit-Queue: Brandon Schade <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2022-06-02 22:41:44 +00:00
Gert Wollny bbf67e2e41 Capture/Replay: support capturing eglCreateImage/eglDestroyImage
Because we support only a few functions the supporting code is not
autogenerated. We don't capture the actual value of the display
variable, because we assume that there is only one display, and
the actual pointer to it is provided by the EGLWindow. The rest
of the capturing works just like with the GLES calls.

Bug: angleproject:4964
Bug: angleproject:5822
Bug: angleproject:6180
Bug: angleproject:6286
Bug: angleproject:6578
Bug: angleproject:7111
Change-Id: I385aa9648f93bf74706e9860e2aee5775eeba220
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3636062
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2022-06-02 18:35:04 +00:00
Shahbaz Youssefi 73b7534be4 Vulkan: Suppress forced-xfb-emulation tests on pixel 6
ARM cannot support xfb emulation.

Bug: angleproject:7376
Change-Id: If954ee7f5e4e049c107ac9fef1d84793a4c6d2b2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3686618
Commit-Queue: Shahbaz Youssefi <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
2022-06-02 18:02:54 +00:00
Gregg Tavares 94320a83a1 Metal: Validate total bits used in color attachments
Metal has 2 limits for color attachments. 1 the number of
attachments supported. 2 the total number of bits it can
write per pixel. So for example Apple4 through Apple8 GPUs
can have 8 attachments but only 512bits of output. That
means you can attach 8 RGBA8 textures (256bits), but you
can't attach 8 RGBA32UI textures (1024bits).

If there are too many bits then return
FRAMEBUFFER_UNSUPPORTED from checkFramebufferStatus
and INVALID_FRAMEBUFFER_OPERATION from draws

Bug: angleproject:7280
Change-Id: I935aebad4d57664f59a60be20a927d6b69afb4ff
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3674322
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Gregg Tavares <[email protected]>
2022-06-02 17:45:34 +00:00
angle-autoroll f8f84e4952 Roll SwiftShader from 466e443100e6 to ee0d0b41a626 (2 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/466e443100e6..ee0d0b41a626

2022-06-02 [email protected] Extend SIMD::Pointer to use multiple full pointers
2022-06-01 [email protected] Fix border comparison with depth 16

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: If4fab223ce95f0a1ed47134a3b6054d8e97ea7ca
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3686144
Bot-Commit: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2022-06-02 12:42:46 +00:00
angle-autoroll 67a8c19843 Roll Chromium from f6e0343d6b36 to 795b7900dc69 (491 revisions)
https://chromium.googlesource.com/chromium/src.git/+log/f6e0343d6b36..795b7900dc69

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/fb6ee3587b..d95e42df71
* buildtools/third_party/libunwind/trunk: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git/+log/5e737be79c..86ab9dd743
* testing: https://chromium.googlesource.com/chromium/src/testing/+log/0ecc4fd019..d857d1dbbe
* third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/{catapult_..1cac3deac8
* third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+log/e1197f06a8..8f1fea025d
* tools/clang: https://chromium.googlesource.com/chromium/src/tools/clang.git/+log/393c871899..fd520dc44a
* tools/perf: https://chromium.googlesource.com/chromium/src/tools/perf/+log/c07d80bf81..6b7d5a8e41
No update to Clang.

Bug: angleproject:4394
Tbr: [email protected]
Change-Id: I5c6bab9933b2ecfd7e45b07e6b577675e575d978
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3685850
Commit-Queue: angle-autoroll <[email protected]>
Bot-Commit: angle-autoroll <[email protected]>
2022-06-02 08:28:44 +00:00
Kenneth Russell 6a0c779ebc Uptream Vivante and VMWare vendor ID recognition.
Case-insensitively alphabetize the IDs and helper functions.

Bug: angleproject:6839
Change-Id: Ib6746b3e6a8858e85b70c04424093ddbd02285fc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3684955
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Kenneth Russell <[email protected]>
Reviewed-by: Gregg Tavares <[email protected]>
2022-06-02 05:24:45 +00:00
Shahbaz Youssefi e04314fd8f Vulkan: Include state in pipeline graph dump
Each program generates a group of nodes.  The group's description is the
common state among all nodes.  Each node contains the diff with the
shared state.  Arrows between nodes indicate the
GraphicsPipelineTransitionBits that have caused the transition.  State
that is 0 is not output for brevity.

Bug: angleproject:6565
Change-Id: I7b6a95efcee63f1d7d368d8e062c5c1d221fb8b9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3673829
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-02 01:57:14 +00:00
Gregg Tavares 8a0351a5aa Metal:Dynamically choose max draw buffers.
The code was hard coded to 4 which is lower than OpenGL's 8.
This implementation keeps a hard coded array of size 8 in
rx::mtl::RenderPassDesc and rx::mtl::RenderPipelineOutputDesc
but only uses up to the display's limit.

Bug: angleproject:7280
Bug: angleproject:5730
Change-Id: Idd7e64dc47697882b44540804159566158e1e924
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3671695
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Gregg Tavares <[email protected]>
2022-06-02 01:45:03 +00:00
Gregg Tavares 17f9e941a5 Metal: Upstream clear performance fix
Restricts in-flight render passes per command buffer a
predefined limit. The goal is to reduce the number of
active render passes on the system at any one time.

Patch is from: https://bugs.webkit.org/show_bug.cgi?id=234008

Bug: angleproject:7386
Change-Id: I6712bf38722e2685ed7d21f12ed0a680779b7a41
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3685190
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Gregg Tavares <[email protected]>
2022-06-02 00:36:34 +00:00
Gregg Tavares e70bea8a6d Metal: Update MAX_LOD_BIAS
The Metal implementation set MAX_LOD_BIAS to 2.0 which is the minimum
the spec requires but setting a limit requires the implementation to
actually respect that limit.

AFAIK the limit on most GPUs, including Metal, is however many
mips are allowed thereby letting you select any mip level.

Note that as far as I can tell, MAX_LOD_BIAS can be larger than
the maxiumum number of mip levels but there's no way to observe
that behavior.

There is a WebGL test for this here
https://github.com/KhronosGroup/WebGL/pull/3419

It passes on OpenGL and fails on Metal without this CL.

Bug: angleproject:7280
Change-Id: I365cb5b3f872cd5036765f4eec932be1e2c07f8f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3684356
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Gregg Tavares <[email protected]>
2022-06-02 00:06:54 +00:00
Faye Zhang 32a0ee9296 Code Cleanup
In validationES.cpp, the framebuffer is required to have
0 depth bits (to conform to OpenGL ES 3.2 specifications).
That is, ImageHelper::copyImageDataToBuffer() will not
be called on a buffer with combined depth and stencil format.
Replacing the lines relating to testing combined depth and stencil
format ImageHelper::copyImageDataToBuffer() with an assert.

Bug: angleproject:6856
Change-Id: I911500910b2065eb21c72d7f2d8ff481f4afa304
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3680862
Reviewed-by: Charlie Lao <[email protected]>
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Commit-Queue: Faye Zhang <[email protected]>
2022-06-01 23:50:33 +00:00
Stephen White 6c0d46588d D3D11: implement stencil texturing.
When GL_DEPTH_STENCIL_TEXTURE_MODE is set to GL_STENCIL_INDEX, GL
requires the stencil value to be in the R component. However, when
sampling a depth24stencil8 texture in D3D11, the stencil ends up in the
G component. So in this mode, swizzle the result from G to R.

In order to sample stencil, use the appropriate stencil-only format
for the SRV: X24_TYPELESS_G8_UINT for d24s8, X32_TYPELESS_G8X24_UINT
for d32fs8. This required adding a new field to D3D11 Format.

Bug: angleproject:7303
Change-Id: I7cf70efaaf6c833fa0b2497e4080618dfd7103ac
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3679485
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Stephen White <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-01 22:17:23 +00:00
Shahbaz Youssefi 28b4c378da Vulkan: Pipeline creation feedback in perf counters
Bug: angleproject:5881
Change-Id: I42917cab3c97abb50a14035972a96728dcb990b9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3672851
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
2022-06-01 20:54:23 +00:00