Commit Graph
759 Commits
Author SHA1 Message Date
Cody Northrop e51c9068a8 Tests: Add Google Maps trace
TBR: [email protected],[email protected]
Test: angle_perftests --gtest_filter="*google_maps*"
Bug: b/172977194
Change-Id: I1e2a2ed7af95069d30fd4d0fede036555688e98b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2530456
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-11-21 00:26:52 +00:00
Cody Northrop 565f1b16c3 Tests: Add LEGO Legacy trace
Requires GL_EXT_shadow_samplers which is not exposed by Qualcomm's
native driver on Pixel 4 XL.

Test: angle_perftests --gtest_filter="*lego_legacy*"
Bug: b/161716126
Bug: angleproject:5373
Bug: angleproject:5374
Change-Id: Ifff9c5e878b7fe9a3ade684ae5f8e57167f01a25
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2477441
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
2020-11-20 23:41:32 +00:00
angle-autoroll 7784fce44d Roll VK-GL-CTS from 3f73b676d6e8 to 524e5bcfba33 (3 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/3f73b676d6e8..524e5bcfba33

2020-11-20 [email protected] Update tests to not trigger undefined behaviour in framebuffer_fetch cases
2020-11-20 [email protected] Add a batch of GraphicsFuzz coverage tests
2020-11-20 [email protected] Add tests for empty structs in UBOs and SSBOs

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: Iefb4f6764338906e64f87ea070448ffd9cf2054f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2552421
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-11-20 13:25:03 +00:00
angle-autoroll 6bdeacb1e3 Roll VK-GL-CTS from 4fe17f3425ee to 3f73b676d6e8 (9 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/4fe17f3425ee..3f73b676d6e8

2020-11-19 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-11-19 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
2020-11-18 [email protected] Add external memeory tests for the VK_EXT_device_memory_report extension
2020-11-18 [email protected] Enable random writes for storage images
2020-11-18 [email protected] Fix depth/stencil image logging in renderpass tests
2020-11-18 [email protected] Fix initial layout of depth stencil attachment
2020-11-18 [email protected] Fix tests dEQP-VK.draw.depth_clamp
2020-11-18 [email protected] Avoid advertising disabled robustness2 features
2020-11-18 [email protected] Fix regressions in renderpass 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: I286bac4e33496b1aebaa7a5e2b576e3b5771d201
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2551395
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-11-19 22:29:57 +00:00
Geoff Lang a5e98a83db roll_aosp: Pass more forceful args to gclient sync
Gclient sync would get stuck if the deps were left in a bad state
from a previous failed roll.  Pass the same args as the Chrome bots
to forcefully sync.

Bug: b/150458033
Change-Id: I6bd1aefbd7e4db22dd08acf781b6a08985f600da
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2551533
Reviewed-by: Geoff Lang <[email protected]>
2020-11-19 20:53:12 +00:00
Mohan Maiya 8a401051a8 Vulkan: Support OES_sample_variables extension
Enable OES_sample_variables extension on Vulkan backend.
Add support for built-in variables, uniform state and constants
- gl_SampleId, gl_SamplePosition, gl_SampleMask,
  gl_SampleMaskIn
- gl_NumSamples
- gl_MaxSamples

Bug: angleproject:3588
Tests: dEQP-GLES31.functional.shaders.sample_variables.*
       KHR-GLES31.core.sample_variables.*
Change-Id: Idf37c7b4ccb0331dbda7acd6389ff4e1022ba959
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2477907
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-19 17:47:55 +00:00
Shahbaz Youssefi 8d63a7fc49 Basic support for running deqp khr gles32 tests
Bug: angleproject:3647
Change-Id: Ia707ffcd41926662d1513f1a3bf49149b76f6b9c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2544920
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-11-19 05:54:18 +00:00
Mohan Maiya 738092aead Add auto generated code for GL_EXT_tessellation_shader
To support tessellation, code and auto generated code are added.
Entry points function, ShaderTypes, built in variables and constants,
builtin function barrier and patch keyword are added.

Bug: angleproject:3572
Change-Id: Ia5fe473e884466cb88cea7138e13377a1d7b4fa0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2538393
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-18 17:27:55 +00:00
Mohan Maiya cc4ae6da79 Vulkan: Add EXT_separate_shader_objects entry points
Addition of the entry points for EXT_separate_shader_objects extension.

Bug: angleproject:3570
Change-Id: I95a1342bb3322b49997125a17367590183134c84
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2539120
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-11-17 16:55:56 +00:00
angle-autoroll c09ef1b361 Roll VK-GL-CTS from 9e07e4424cd4 to 4fe17f3425ee (12 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/9e07e4424cd4..4fe17f3425ee

2020-11-09 [email protected] Tests for VK_KHR_shader_terminate_invocation
2020-11-06 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-11-06 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
2020-11-06 [email protected] Reset texture data to 0 after each 16 iterations to avoid overflow
2020-11-06 [email protected] Update Amber to fix Clang 11 build
2020-11-06 [email protected] Fix multisample resolve compatibility tests
2020-11-06 [email protected] Create debug report recorder earlier
2020-11-06 [email protected] Add tests for oob access in unexecuted shader paths
2020-11-06 [email protected] Add subpass self dependency test with a single attachment
2020-11-06 [email protected] Re-enable cube.*.mag_filter.linear test
2020-11-06 [email protected] Add VkDeviceMemory tests for the VK_EXT_device_memory_report extension
2020-11-04 [email protected] Check images can use external host memory before creating them

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: Icf36b0b648dd45f2cd0b60c0c4a6ba3300ef1807
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2543806
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-11-17 15:06:55 +00:00
Mohan Maiya 4f96bf1994 Remove duplicate entry of glProgramUniformMatrix4fvEXT in gl.xml
The GL_EXT_separate_shader_objects section of gl.xml has duplicate
entries for glProgramUniformMatrix4fvEXT. Remove that locally, while
this khronos bug -
 https://github.com/KhronosGroup/OpenGL-Registry/issues/443
tracks the upstream fix.

Also add an assert in the script to error out when duplicates exist.

Bug: angleproject:3570
Change-Id: Id0799b0e4f5ec6bc6beb3e18b5f888afec8ac169
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2539119
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-17 01:23:07 +00:00
James Darpinian 3f741f0d29 Remove trailing whitespace.
This whitespace inside a string is ignored by our presubmit but WebKit's
doesn't like it.

Bug: angleproject:5351
Change-Id: I8385c9a49332a92ce16b170bc1a22408bd387f30
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2541823
Commit-Queue: James Darpinian <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-16 21:48:17 +00:00
Geoff Lang 5b419533e5 GL: Implement EXT_YUV_target
Add test coverage of YUV format sampling as RGB or directly as YUV and
rendering as YUV using layout(yuv).

Initializing YUV AHardwareBuffers requires Android API 29 so ANGLE must
be compiled with:
android32_ndk_api_level = 29
android64_ndk_api_level = 29

The following tests can still run with Android API 26 because they don't
need to initialize the buffer:
ImageTestES3.ClearYUVAHB
ImageTestES3.YUVValidation

Bug: angleproject:4852
Bug: b/172649538
Change-Id: I4fe9afb2a68fb827dc5a5732b213b5eb60d585ac
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2517562
Commit-Queue: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-11-16 20:38:46 +00:00
angle-autoroll 59bddcfb2c Roll Vulkan-Headers from 670ffea9d61b to 11c6670b4a4f (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/670ffea9d61b..11c6670b4a4f

2020-11-16 [email protected] Update for Vulkan-Docs 1.2.161

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: Iabd1eab36736ca79fb9bbe20a0e396b823cb7a6d
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2538728
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-11-16 12:05:29 +00:00
Cody Northrop d276773af2 Tests: Add Real Commando Secret Mission trace
Test: angle_perftests --gtest_filter="*real_commando_secret_mission*"
Bug: b/172979023
Change-Id: Ifcb283d06bea78732d0f5daf9b1dfbb915fb9fab
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2530458
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-11-13 15:25:47 +00:00
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