Commit Graph
744 Commits
Author SHA1 Message Date
Jamie Madill 98035e11d9 Capture/Replay: Split into separate shared libaries.
This will produce several smaller shared libs rather than one very
large one. Involves moving the trace loader to its own shared module
as well. Because the traces didn't have export labels on most of the
affected functions I had to use a "force include" argument on the
compiler. We can remove this once we re-capture.

This is a first step towards testing one trace at a time on an Android
device.

Includes a complete set of new regenerated traces.

Bug: angleproject:5133
Change-Id: If984de34af21fce48b0832401dbe5aa4b002ce95
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2506199
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
2020-11-10 16:35:37 +00:00
Mohan Maiya 9217d49db0 Vulkan: Add EXT_external_buffer entry points
Addition of the entry points for EXT_external_buffer extension.

Bug: angleproject:5073
Change-Id: I5dc9f74dfd68c1e83e17ca15166df4cd4c20fca2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2525104
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-11-09 16:21:53 +00:00
angle-autoroll 2e236c33e9 Roll Vulkan-Headers from 87451c55aa8b to 670ffea9d61b (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/87451c55aa8b..670ffea9d61b

2020-11-09 [email protected] Update for Vulkan-Docs 1.2.160

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

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/master/autoroll/README.md

Change-Id: Ia6d4d889cf62e7dc38a9fcb6de223fb256f21bbd
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2525861
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-11-09 11:06:05 +00:00
Jamie Madill aca3d40810 Fix return value of cube map array imageStore.
Should be void according to the spec. Noticed while working on texture
buffer.

Bug: angleproject:3584
Change-Id: I79a671c82fa117bab69bc2e6b35c840aa30429c5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521241
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-07 20:02:29 +00:00
Jamie Madill 43acf3badf GL: Compiler changes for GL_OES_texture_buffer
This extension is core in GLES 3.2
This CL enables the extension, added 412 new dEQP tests for texture
buffer. 410 of these tests pass, but there are two tests that fail,
detailed in anglebug.com/4933

Also includes a fix for completeness checks.

Based on a CL by Jonah Ryan-Davis.

Bug: angleproject:3573
Bug: angleproject:4933
Change-Id: I45759d765c88c64f21b592eab01d910dc4bc8da3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521239
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-11-06 23:09:57 +00:00
Cody Northrop 6507c1edc1 Tests: Add Clash of Clans trace
Note: Hand edits required to compile this trace.
ANGLE_REPLAY_EXPORT was removed from each of the entry points in the
header. See build logs in patch set 1 of this CL for full output.

Test: angle_perftests --gtest_filter="*clash_of_clans*"
Bug: b/172626835
Change-Id: I63bab8f059a2c73c0a2fcd5b70fd92abf3bd4650
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521180
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-11-06 19:11:59 +00:00
Geoff Lang 156c227d6c Remove the amend commit from roll_aosp.sh
Bug: b/150458033
Change-Id: Ice5711a672b63a7dac0618749c7e56d862e0e5ad
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2523373
Reviewed-by: Geoff Lang <[email protected]>
2020-11-06 18:07:16 +00:00
Geoff Lang e70b1527e6 Always use the -f flag with rm in roll_aosp.sh
rm will error when the file is missing without the -f flag. We delete a
few files without checking that they exist first.

Bug: b/150458033
Change-Id: I5a104d383f59d418eaa55534526194f626c88f57
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2523372
Reviewed-by: Geoff Lang <[email protected]>
2020-11-06 17:54:45 +00:00
Jamie Madill af16c638cf Perf Tests: Add --max-steps-performed argument.
This will limit the total number of steps run in the test.
When using this argument we skip warmp & calibration.

Renames the prior --steps argument to --steps-per-trial.

Bug: b/172480147
Change-Id: Iae7cce26d66ca0bbdb21c1f511a6bfa246bd204e

Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2519404
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-11-06 16:32:14 +00:00
Geoff Lang 6a8d5bcbaf Fix wrong working directory for roll_aosp.sh
Bug: b/150458033
Change-Id: I17c605cbe02341b31855dc771225bf0c95445bfd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2522009
Reviewed-by: Geoff Lang <[email protected]>
2020-11-06 16:24:15 +00:00
Jamie Madill f2a789263b Symbol Table: Error on duplicate group keys.
This prevents newer group keys from overwriting old ones.
Prevents bugs from creeping in like happened during texture buffer
development.

Bug: angleproject:3573
Change-Id: Iea69cac988e2cf4802a9f64c54cb694d32f1d3e1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521238
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-11-06 16:11:04 +00:00
Geoff Lang b59437cb15 Check out depot_tools in roll_aosp.sh
Bug: b/150458033
Change-Id: I8b299f96d74499669495ca25d5b08711db90ce61
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2522008
Reviewed-by: Geoff Lang <[email protected]>
2020-11-06 16:10:56 +00:00
Jamie Madill 6f755d2197 Fix trigger.py using deprecated parameters.
This changes the script to query the command from mb.py then
call swarming trigger with -raw-cmd and -relative-cwd.

See http://crbug.com/chrome-operations/94

Bug: None
Change-Id: I1e11cd2e1314a4e96e1ee5a42b311f0c3cb5058b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521240
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
2020-11-06 01:38:43 +00:00
James Darpinian e53efb18f9 Allow choosing EAGL or CGL at runtime
Dean Jackson made this change downstream in WebKit:
https://bugs.webkit.org/show_bug.cgi?id=216722

Change ANGLE to dynamically load either EAGL (OpenGLES) or CGL (OpenGL)
depending on both compile and runtime configurations.
    Intel Mac -> CGL
    Intel Mac Catalyst -> CGL
    Intel iOS Simulator -> EAGL
    iOS Device -> EAGL
    Apple Silicon Mac -> CGL
    Apple Silicon Mac Catalyst (with Mac app) -> CGL
    Apple Silicon Mac Catalyst (with iOS app) -> EAGL

The trickiest bit is Apple Silicon Mac Catalyst, which depends on the
type of the application it is attempting to run. In that case ANGLE must
compile both the CGL and EAGL interfaces and then pick one to use after
launch.

Bug: angleproject:5253
Change-Id: Iba167b3cc3105e457dcfc9bc14147d0fc3e70bac
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2500185
Commit-Queue: James Darpinian <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
2020-11-06 00:45:23 +00:00
Jamie Madill fbaae6ce3e GL: Add support for GL_OES/EXT_texture_buffer
This extension is core in 3.2

Based on a CL by Jonah Ryan-Davis.

Bug: angleproject:3573
Bug: angleproject:4933
Change-Id: Ib5ce038414075a5cdce36e9404e25d7af33fb39c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2519401
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-06 00:38:23 +00:00
Alexey Knyazev 56ea854ec5 Metal: Allow unswizzled BC1 RGB
Refine DXT1CompressedTextureTest.DXT1Alpha to pass on more
configurations.

Fix the test's payload so that all 16 pixels use code 3.

Refine texture swizzling detection.

Bug: angleproject:2634
Bug: angleproject:5049
Change-Id: If9e1ab63220170a54954234ea205e19583b0df0a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2467896
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Le Hoang Quyen <[email protected]>
Commit-Queue: Alexey Knyazev <[email protected]>
2020-11-05 19:24:42 +00:00
Le Hoang Quyen 9ff063e9c0 Metal: fix max varyings, copyImage between mips, depth fmt
- GLSLTest_ES3.MaxVaryingWithFeedbackAndGLline failed before because
  gl_Position takes up one slot from max varyings on Metal back-end.
  FIXED

- Previously, copyImage() between mips of the same texture would fail.
  Due to the read RenderTargetMtl is released before the copy happens.
  FIXED

- GL_DEPTH_COMPONENT24 texture data upload didn't work due to the source
  32 bit depth data wasn't handled properly.  FIXED

- D24S8 format will be disabled on AMD for now, it will be converted to
  D32S8 instead.

Bug: angleproject:2634
Bug: angleproject:5235
Bug: angleproject:5242
Change-Id: Ie7082f0545c0885ce5ec72df8a7ec4ee5d5de4b1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2494525
Commit-Queue: Le Hoang Quyen <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-11-04 12:27:56 +00:00
Le Hoang Quyen cb6176f3a8 Metal: Support tri-fan & line-loop with primitive restart
Triangle fan:
- If primitive restart is NOT enabled and there is no active render
  pass, use Compute Shader to generate indices.
- If primitive restart is enabled, use CPU to generate indices.

Line loop:
- If draw non-instanced without primitive restart, generate and
  draw only one additional last segment (fastest).
- If draw instanced, primitive restart is NOT enabled, and there is no
  active render pass, use Compute Shader to generate indices (OK).
- Otherwise, use CPU to generate indices (slowest).

Also Disable OcclusionQueriesTest.ClearNotCounted failure on NVIDIA.

Bug: angleproject:2634
Bug: angleproject:5307
Change-Id: Ia5529825807a964f5fcb2a4af8844778896cd42a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2435859
Commit-Queue: Le Hoang Quyen <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-04 10:13:16 +00:00
Courtney Goeltzenleuchter 64f0451626 Fix presubmit failure with recent glslang update
Recent glslang update moved a #include inside a #if statement.
The scripts/export_targets.py presubmit check doesn't know how to handle
that so need to exclude the header in the script.

Bug: angleproject:5294
Change-Id: I68563d59983ce2053f9e03c84b2736721db9fe95
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2518175
Commit-Queue: Courtney Goeltzenleuchter <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-11-03 21:11:47 +00:00
angle-autoroll 74aa2f96e1 Roll Vulkan-Headers from 320af06cbdd2 to 87451c55aa8b (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/320af06cbdd2..87451c55aa8b

2020-11-02 [email protected] Update for Vulkan-Docs 1.2.159

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

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/master/autoroll/README.md

Change-Id: Ia7e9110a6b26d2ec995b82c56d23c4466d43f6bd
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2512391
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-11-02 11:48:20 +00:00
Le Hoang Quyen 8a50b42b01 Metal: Convert index & vertex format on GPU when possible.
- When converting vertex buffer:
  - if there is no render pass active, use compute shader to convert.
  - if there is a render pass active and device supports explicit memory
    barrier then convert the buffer in vertex shader with direct buffer
    write and insert a memory barrier.
  - if there is a render pass active and device doesn't support explicit
    memory barrier then convert the buffer on CPU.

Bug: angleproject:2634
Change-Id: I5346e3a2adb855f40e46a3912d9db404a4482e0f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2434025
Commit-Queue: Le Hoang Quyen <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
2020-10-31 22:03:13 +00:00
Jamie Madill bef8124fa7 Output unknown enum to aid debugging
When investigating issues with apps it's handy to see the actual enum
value, not just that it's an invalid value.

Based on http://crrev.com/c/2182578 by Courtney Goeltzenleuchter.

Bug: b/155487768
Change-Id: I91611cb620a3bf2d302d667e0f168ca5cb6c9d3c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2507637
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-10-30 16:36:47 +00:00
Jamie Madill 42ad027982 Omit types in EVENT macros.
The type information is redundant with the parameters. Cleans up both
the debugger and text-based traces.

Bug: b/170249632
Change-Id: I00f96dc1d69ec7a8c5ca24b1a275f3bc7c29d376
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2507636
Reviewed-by: Ian Elliott <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-10-30 14:11:08 +00:00
Mohan Maiya e895ced6d4 Vulkan: Add OES_shader_image_atomic support
Add support for shader builtins and enable the extension.

Bug: angleproject:3578
Tests: dEQP-GLES31.functional.*image_atomic*
Change-Id: Idd45b2ee62efe1474c6c5947c77da64ff2221bf6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2505540
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-10-29 20:43:25 +00:00
Tim Van Patten 4c5630d082 Disable libcxx_abi_unstable in roll_aosp.sh
The definition _LIBCPP_ABI_UNSTABLE breaks std::string in Android AOSP
builds, starting with GetHelperExecutableDir(), but others fail later
if that's worked around. Instead, we'll disable that flag with a GN arg
for AOSP rolls.

Bug: angleproject:5263
Test: Build on AOSP and launch Cuttlefish
Change-Id: Ia4b293a5ce0b09206f4ed87a5a442e544e2021c1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2508529
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2020-10-29 20:17:34 +00:00
angle-autoroll b2e3a2bd3a Roll VK-GL-CTS from 483a71c5130e to e69b9b7294af (10 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/483a71c5130e..e69b9b7294af

2020-10-25 [email protected] Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master
2020-10-25 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-10-24 [email protected] Notice of withdrawal of Vulkan CTS 1.1.6.x
2020-10-24 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
2020-10-23 [email protected] ANGLE waiver for GLES XFB array element capture
2020-10-23 [email protected] Fix depth/stencil resolve compatibility tests
2020-10-23 [email protected] Fix validation errors in AHB tests
2020-10-23 [email protected] Add create and destroy object tests for the VK_EXT_device_memory_report extension
2020-10-23 [email protected] Add tests for clamping of depth values
2020-10-23 [email protected] Implement custom border color tests

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],[email protected] on the revert to ensure that a human
is aware of the problem.

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/master/autoroll/README.md

Bug: None
Tbr: [email protected],[email protected]
Change-Id: I2cd46cab1b48ccd22233cf4ea938590bab4d0945
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2507709
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-10-29 19:33:34 +00:00
Jamie Madill e3eaa60f1f Revert "Tests: Update COD:Mobile trace"
This reverts commit 8442ea94ea.

Reason for revert: GN messed up and missed the build.
Gold wasn't run so this is likely breaking stuff.

Original change's description:
> Tests: Update COD:Mobile trace
>
> Updates to reflect changes in the application.
>
> Test: angle_perftests --gtest_filter="*cod_mobile*"
> Bug: b/164426913
> Change-Id: I207102c10578abe8eb02fe5ce22aef10b6b1d6f9
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2506076
> Commit-Queue: Cody Northrop <[email protected]>
> Reviewed-by: Jamie Madill <[email protected]>
> Reviewed-by: Courtney Goeltzenleuchter <[email protected]>

[email protected],[email protected],[email protected]

Change-Id: I70fec773b7ff3b20eb4ce9d7545f1dc54233e8ab
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: b/164426913
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2506501
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-10-29 01:41:07 +00:00
Cody Northrop 8442ea94ea Tests: Update COD:Mobile trace
Updates to reflect changes in the application.

Test: angle_perftests --gtest_filter="*cod_mobile*"
Bug: b/164426913
Change-Id: I207102c10578abe8eb02fe5ce22aef10b6b1d6f9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2506076
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
2020-10-28 22:50:15 +00:00
Cody Northrop 9f48c42012 Tests: Add PUBG Mobile Lite trace
Test: angle_perftests --gtest_filter="*pubg_mobile_lite*"
Bug: b/165824228
Change-Id: Iaa95b560da7834ff982bc29a2db22f3582d05513
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2504827
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-10-28 22:22:55 +00:00
Jamie Madill 77defeb046 Add the ability to re-trace existing traces.
This new script runs the ANGLE trace tests with capture enabled to
generate updated replay cpp files. This allows us to update our
traces files to a new file format in one step.

Trace metadata (currently only the default FBO format) is preserved
between re-traces.

Currently only desktop-based retracing is supported. This means a
couple traces that require specific extensions don't run on all
platforms.

Bug: angleproject:5134
Change-Id: I7c923d89e33c18285ab36a7cee91f2fb735758eb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2488130
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-10-28 18:04:05 +00:00
Tim Van Patten ee4e0866cb Vulkan: Add descriptor set allocation counters
Add descriptor set allocation counters for the following:
- ContextVk
  - Driver uniform allocations for graphics and compute pipelines.
- ProgramExecutableVk
  - ANGLE driver uniforms
  - Uniforms
  - Textures
  - Other shader resources
- UtilsVk
  - All of the UtilsVk::Function types increment the same counter

Each object's counters live within the object itself and the cumulative
total is output as part of that object's destruction. On Present, all of
the descriptor set counts are collected into a single total which is
used to update the overlay each frame.

In order to see the cumulative total output for each object, the
following GN args must be enabled:
is_debug = true
angle_enable_perf_counter_output = true

To see the descriptor set allocation overlay:
ANGLE_OVERLAY=VulkanDescriptorSetAllocations

Bug: angleproject:5067
Test: Manual verification with angle_perftests
Change-Id: Ie45fda56ade3e68bfba7bf6da9554eb05a02c6b6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2429487
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Charlie Lao <[email protected]>
2020-10-28 03:18:17 +00:00
Jamie Madill 5dafe107a3 Output nullptr pointer parameters correctly.
Fix by piping all pointer value parameter output to const
void *, which has a custom handler.

This fixes a case where non-void pointers were being output
as (nil) or other values. Fixes the Capture/Replay tests for
many cases.

Bug: angleproject:5249
Change-Id: I20c9e605d9c5a36e36e7a3d6c753a4e0de94ac4c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2497563
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
2020-10-26 15:11:59 +00:00
Cody Northrop 0cec8f7429 Tests: Add Fate/Grand Order trace
TBR: [email protected],[email protected]
Test: angle_perftests --gtest_filter="*fate_grand_order*"
Bug: b/171582504
Change-Id: I09b421ee5a245474ed1c797e9049a2f379d8dc11
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2495542
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-10-26 04:06:32 +00:00
Cody Northrop 29ca7186a6 Tests: Add Dragon Ball Legends trace
TBR: [email protected],[email protected]
Test: angle_perftests --gtest_filter="*dragon_ball_legends*"
Bug: b/171652453
Change-Id: I668232f3a1e7ca9663f481fb4246b44fb9333b4a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2497104
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-10-26 03:26:12 +00:00
Cody Northrop 258f17d687 Tests: Add World of Tanks Blitz trace
Test: angle_perftests --gtest_filter="*world_of_tanks_blitz*"
Bug: b/171446929
Change-Id: I028bfde50baa583f1ff7bf30ad77fe40026c7ca7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2495486
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-10-26 00:13:52 +00:00
Jamie Madill acd15cae93 Re-land "Link C++ histogram support into angle_perftests."
This is the first step in uploading histogram data instead of a gtest
special format. We  importing several new libraries:

- tools/protoc_wrapper
- third_party/protobuf
- third_party/catapult (was already used for Android)

No functional change. Only affects compilation. Protobuf support is
disabled when not available.

Bug: angleproject:5161
Change-Id: I64be0977648993b1012ff0d9e0439c5876697e36
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2497221
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-10-25 16:42:09 +00:00
Tim Van Patten e99b8bc07c Fixes to roll ANGLE into AOSP
Rolling ANGLE into AOSP requires the following fixes:

1.) Update scripts/roll_aosp.sh to not delete third_party/abseil-cpp.
2.) Update BUILD.gn to add a dependency on libnativewindow for
"angle_common".

Test: AOSP Presubmit
Bug: angleproject:5230
Change-Id: If97c44ce041e576edc7c0c43700030b4538e8ab5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2495550
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2020-10-24 02:02:17 +00:00
Tim Van Patten 4953f03dff Revert "Link C++ histogram support into angle_perftests."
This reverts commit 7a0263547c.

Reason for revert: Breaks roll of ANGLE into AOSP:

ERROR at //testing/test.gni:76:5: Assertion failed.
    assert(_use_raw_android_executable || enable_java_templates)
    ^-----
See //third_party/catapult/tracing/tracing/BUILD.gn:35:1: whence it was called.
test("histogram_unittests") {
^----------------------------
See //src/tests/BUILD.gn:262:17: which caused the file to be included.
      deps += [ "//third_party/catapult/tracing/tracing:histogram" ]
                ^-------------------------------------------------

Original change's description:
> Link C++ histogram support into angle_perftests.
>
> This is the first step in uploading histogram data instead of a gtest
> special format. We  importing several new libraries:
>
> - tools/protoc_wrapper
> - third_party/protobuf
> - third_party/catapult (was already used for Android)
>
> No functional change. Only affects compilation. Protobuf support is
> disabled when not available.
>
> Bug: angleproject:5161
> Change-Id: Ie28d57d7e142c437ebd51463ce3e2cafd87468d1
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2482294
> Reviewed-by: Yuly Novikov <[email protected]>
> Reviewed-by: Brian Sheedy <[email protected]>
> Commit-Queue: Jamie Madill <[email protected]>

[email protected],[email protected],[email protected]

Change-Id: I62c4b926cbe82d10e460b28b5f864521e2b1f8ee
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: angleproject:5161
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2495549
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2020-10-23 23:11:49 +00:00
Jamie Madill 7a0263547c Link C++ histogram support into angle_perftests.
This is the first step in uploading histogram data instead of a gtest
special format. We  importing several new libraries:

- tools/protoc_wrapper
- third_party/protobuf
- third_party/catapult (was already used for Android)

No functional change. Only affects compilation. Protobuf support is
disabled when not available.

Bug: angleproject:5161
Change-Id: Ie28d57d7e142c437ebd51463ce3e2cafd87468d1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2482294
Reviewed-by: Yuly Novikov <[email protected]>
Reviewed-by: Brian Sheedy <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-10-23 15:44:15 +00:00
Jamie Madill 614b5e4df0 Clean up test runner TODOs.
Bug: angleproject:3162
Change-Id: Ie0a137341c7a27a1981c9a39a8e07e437589520a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2495280
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-10-23 13:58:10 +00:00
Cody Northrop 9c8da02650 Revert "Tests: Add FIFA Mobile trace"
This reverts commit 2e1091e0ef.

Reason for revert: Potentially flaky results, http://anglebug.com/5215

Original change's description:
>    Tests: Add FIFA Mobile trace
>
>    Test: angle_perftests --gtest_filter="*fifa_mobile*"
>    Bug: b/171421051
>    Change-Id: If50c6387a1a49fb6946d20279caf6470544a2b11
>    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2490279
>    Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
>    Reviewed-by: Jamie Madill <[email protected]>
>    Commit-Queue: Cody Northrop <[email protected]>

[email protected],[email protected]

Bug: angleproject:5215
Change-Id: I6a332b126c6c54f189fd451725957d288ab6b76b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2491113
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-10-22 17:40:46 +00:00
Cody Northrop 2e1091e0ef Tests: Add FIFA Mobile trace
Test: angle_perftests --gtest_filter="*fifa_mobile*"
Bug: b/171421051
Change-Id: If50c6387a1a49fb6946d20279caf6470544a2b11
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2490279
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-10-22 00:59:18 +00:00
Cody Northrop ad222d1c9f Tests: Add KartRider Rush+ trace
Test: angle_perftests --gtet_filter="*kartrider_rush*"
Bug: b/171337677
Change-Id: I9a248ecf51e296a2b894b0951538842a7efde046
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2490277
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-10-21 21:53:35 +00:00
Cody Northrop 8feb5c8253 Tests: Add Marvel Contest of Champions trace
Test: angle_perftests --gtest_filter="*marvel_contest_of_champions*"
Bug: b/171334313
Change-Id: Ia1195a5647ad2805e3cabd23c15719eb1ebc3534
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2487764
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
2020-10-21 20:19:45 +00:00
Geoff Lang 089ef0fa65 Expose glGetTexLevelParameter{if}v before ES 3.1.
Add a new extension, ANGLE_get_tex_level_parameter which allows
users to query texture size and format information before ES 3.1.
This is very useful for re-using existing textures instead of
re-allocating.

Bug: chromium:1132514
Change-Id: I71f6bad8bdacb91875cc81b4884d4c3099235f3f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2469959
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-10-21 17:23:46 +00:00
Jonah Ryan-Davis 188a1fc7b6 Add dlopen_fuchsia.h as exception in export_targets.py
This was breaking the Vulkan-Loader autoroller after a Fuschia
related change.

Bug: chromium:1140531
Change-Id: I502bcf67c014a9c543cacc35b6e21b366aae1e1b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2490340
Commit-Queue: Jonah Ryan-Davis <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-10-21 15:48:24 +00:00
Mohan Maiya 553726a4c5 Vulkan: Add OES_shader_multisample_interpolation extension
Addition of 'sample' qualifier keyword and 'interplateAt*'
fragment shader builtin functions with autogen

Bug: angleproject:3589
Change-Id: If358eb371fbcefffa715c8da4ba5e96eefaf6f52
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2477904
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-10-21 04:57:21 +00:00
Cody Northrop d591ddff25 Tests: Add Free Fire trace
Test: angle_perftests --gtest_filter="*free_fire*"
Bug: b/168049517
Change-Id: Ide772454fe5c602d92bf9c476d33da420b9dfa14
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2461350
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
2020-10-21 04:26:10 +00:00
Cody Northrop 9d160b0bba Tests: Add Brawl Stars trace
Test: angle_perftests --gtest_filter="*brawl_stars*"
Bug: b/171043467
Change-Id: Ide04fbbfd69145554c6dbb544d6ee4daa51df9cc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2481154
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-10-20 22:16:45 +00:00
Cody Northrop 637786a9a8 Tests: Add Arena of Valor trace
Test: angle_perftest --gtest_filter="*arena*"
Bug: b/170994774
Change-Id: I44c81c539da975fefcf085d6fc12f8508826277f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2477440
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-10-20 20:31:45 +00:00