Commit Graph
815 Commits
Author SHA1 Message Date
Cody Northrop 3c3b82abcf Tests: Add Hearthstone trace
Test: angle_perftests --gtest_filter="*hearthstone*"
Bug: angleproject:5571
Change-Id: Idc6535bbf817cd62d34aa9e684604be068455520
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2644143
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2021-01-22 18:17:24 +00:00
Cody Northrop 70f493d6e6 Tests: Add Subway Surfers trace
Note this differs from the previous trace for the app,
"subway_surfer_500". The previous trace is no longer
compatible with the replay harness and could not be
re-recorded due to using Vulkan at the time.

Test: angle_perftests --gtest_filter="*subway_surfers*"
Bug: angleproject:5569
Change-Id: If941a3f0e88e3e1aee7fb7db736e623f66a65de6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2641098
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2021-01-21 18:27:00 +00:00
angle-autoroll bd8ca05180 Roll vulkan-deps from dd50a3bce3ca to 3180f85f9bcd (11 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/dd50a3bce3ca..3180f85f9bcd

2021-01-19 [email protected] Roll SPIRV-Tools from e25db023c47a to 56f8ed48efd5 (1 revision)
2021-01-19 [email protected] Roll Vulkan-ValidationLayers from c7ffe6890160 to ab73ad637606 (2 revisions)
2021-01-19 [email protected] Roll Vulkan-ValidationLayers from efecc309816c to c7ffe6890160 (2 revisions)
2021-01-19 [email protected] Roll Vulkan-ValidationLayers from fb6e414f76dc to efecc309816c (1 revision)
2021-01-19 [email protected] Roll Vulkan-ValidationLayers from 03e41cc0c2a8 to fb6e414f76dc (2 revisions)
2021-01-19 [email protected] Roll Vulkan-ValidationLayers from 6886c4b57f10 to 03e41cc0c2a8 (3 revisions)
2021-01-19 [email protected] Roll Vulkan-ValidationLayers from 10651a9c0bc2 to 6886c4b57f10 (1 revision)
2021-01-19 [email protected] Roll glslang from 5b7d68ca6b3f to 9b4e82efb482 (1 revision)
2021-01-19 [email protected] Roll glslang from 3de5cfe50ede to 5b7d68ca6b3f (1 revision)
2021-01-19 [email protected] Roll Vulkan-Headers from 9efc4a631161 to 684390cedbff (1 revision)
2021-01-19 [email protected] Roll SPIRV-Tools from 8383bd5d6f26 to e25db023c47a (1 revision)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-deps-angle-autoroll
Please CC [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]
Change-Id: Ic79a5b12d8132a7f322c507150d3a7aa62ca0d66
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2639815
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2021-01-20 15:34:35 +00:00
Tim Van Patten 08e385b48d Tests: Add Klondike Adventures trace
Test: angle_perftests --gtest_filter=TracePerfTest.Run/*klondike_adventures*
Bug: angleproject:5548
Change-Id: I1bab7696f3db6cb3b3be9d1f3e241891586a9cc8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2634204
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-20 01:09:46 +00:00
Trevor David Black 192a0147c3 Multithreading in D3D11 minimum viable product
Bug: b/168046573
Change-Id: I676a148333cbf5e9ca508768503e62cb14d8eeb0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2629618
Commit-Queue: Doug Horn <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Trevor David Black <[email protected]>
2021-01-20 00:16:46 +00:00
Cody Northrop dd6ac664c6 Tests: Add Asphalt 8 trace
Test: angle_perftests --gtest_filter="*asphalt_8*"
Bug: b/150484427
Change-Id: I6a5f1feec61466eae55c1a2464272aba797ed56c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2636602
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2021-01-19 19:41:40 +00:00
Jamie Madill e670fc72a5 Implement shader compiler changes for Tessellation.
Numerous rule changes to support validating Tessellation Control and
Evaluation shaders. New per-patch inputs and output variable support.
Includes a new traverser step that validates barrier function calls.

Functionality changes upcoming in http://crrev.com/c/2568234

Bug: angleproject:3572
Change-Id: If8da1c21d30efa12c60ed0d6c3f8cf0b27e4c86f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2633936
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Mohan Maiya <[email protected]>
2021-01-19 17:15:46 +00:00
Geoff Lang b5424bb4a2 Generate internal gl entry point functions as C functions.
Some internal GL functions are exported to our libGLESv1_CM library
and to properly export them, they must be C functions.

Bug: angleproject:5534
Change-Id: I37280312f73fd5e55166e4fa36659267d657a50b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2628139
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2021-01-18 22:19:25 +00:00
Tim Van Patten ff170c6f50 Tests: Add Real Gangster Crime trace
Note: Hand edits required to capture this trace:

CaptureMidExecutionSetup():
    // Check for supported textures
    ASSERT(index.getType() == gl::TextureType::_2D ||
           index.getType() == gl::TextureType::_3D ||
           index.getType() == gl::TextureType::_2DArray ||
           index.getType() == gl::TextureType::CubeMap ||
           index.getType() == gl::TextureType::External);  <<--- add

Test: angle_perftests --gtest_filter=TracePerfTest.Run/*real_gangster_crime*
Bug: angleproject:5550
Change-Id: I32391cc8de0b4307334bb873af4f3c5899b584f2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2626357
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-16 00:51:37 +00:00
Tim Van Patten 861378be3a Tests: Add Magic Tile 3 trace
Test: angle_perftests --gtest_filter=TracePerfTest.Run/*magic_tiles_3*
Bug: angleproject:5540
Change-Id: I6d6f144d4c2a38cfc55724f7e454f756a162d054
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2622611
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-14 22:49:21 +00:00
Jason Macnak d392af02b7 Update roll AOSP scripts to reflect vulkan-deps subdirectory
Performing a roll with this changes produces
https://android-review.googlesource.com/c/1548235

Bug: b/147316305
Bug: angleproject:5456
Test: scripts/roll_aosp.sh && m ANGLE
Change-Id: I0f5a698e81a1299abde7cfccb4e1467c8dc02aad
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2625168
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2021-01-14 16:41:38 +00:00
Junji Watanabe f7801a3be1 Use CAS in scripts/trigger.py
Isolate server is being migrated to CAS.
This CL changes trigger.py to use CAS instead of Isolate server.

Bug: chromium:1163817
Change-Id: I137cd656798c08bf991cb77da36780b87193f821
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2626931
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2021-01-13 16:24:13 +00:00
Jamie Madill 2e9161e4ff Vulkan: Add YUV G8_B8_R8_3PLANE_420_UNORM format.
Bug: angleproject:5438
Change-Id: I525a51256a5ee83fa69c8705aa90790fb32a6602
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2623813
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2021-01-12 21:06:26 +00:00
Jamie Madill fb4eea2ebb Vulkan: Index mandatory support table by ANGLE format.
This removes another instance of indexing a flat array by VkFormat.
With the introduction of YUV formats we no longer have a compact
table. Switching to ANGLE format indexing allows us to keep a flat
array and avoid using an unordered map.

Bug: angleproject:5438
Change-Id: I96caa19e3b7ce419ce09680399919447f002b0bd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2622238
Reviewed-by: Ian Elliott <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2021-01-12 19:25:26 +00:00
Jason Macnak 2c65da28a2 Default roll_aosp.sh to copy artifacts to vendor partition
... to support using ANGLE as a native GL driver.

Note: this will not affect devices installing the APK with
`PRODUCT_PACKAGES += ANGLE` and will *not* also install the
libs to vendor.

Bug: b/147316305
Bug: angleproject:5456
Test: ./scripts/roll_aosp.sh and build in AOSP
Change-Id: I98cab8d0735a4f66293ac063e0eef2ae7ddbee7b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2618529
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2021-01-12 00:53:01 +00:00
Jamie Madill 2e9706d80d Vulkan: Use angle::FormatID instead of VkFormat.
This change switches the internal enums we pass around from VkFormat
to FormatID. The end goal of the refactor is to allow the Vulkan
back-end to store packed tables indexed by FormatID. Because VkFormat
has large gaps in its enum space we'd otherwise need to use unordered
data structures like unordered_map.

The change removes the redundant VkFormat storage from vk::Format and
uses a new table query to return the VkFormat that 1:1 matches an
angle::FormatID. We also include a reverse mapping for use with native
Vulkan get functions for Android.

Also moves sRGB conversion functions into renderer_utils. A couple
sRGB formats that don't exist in GL are no longer handled by the sRGB
conversion functions. These formats should be extremely rare.

Bug: angleproject:5438
Change-Id: Id8b49773ca0c556f9f5a6a10fcf0d9762b93bbea
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2618204
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
2021-01-12 00:18:01 +00:00
Tim Van Patten 6e909d9407 Tests: Add Saint Seiya Awakening: Knights of the Zodiac trace
Test: angle_perftests --gtest_filter=TracePerfTest.Run/*saint_seiya_awakening*
Bug: angleproject:4048
Change-Id: Idf187b9c9298d184f1e0dd13f8a9aa0de7c2beb8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2612523
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-09 03:01:13 +00:00
Tim Van Patten 767af74ec9 Tests: Add World War Doh trace
Test: angle_perftests --gtest_filter=TracePerfTest.Run/*world_war_doh*
Bug: angleproject:4048
Change-Id: I047ed1ccd06cd3707065fe8afed3ad7af5cd7dcc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2606645
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-08 22:52:05 +00:00
Mohan Maiya 68f35f242a Vulkan: Add GL_EXT_clip_control entry points
Addition of the entry points for GL_EXT_clip_control extension.

Bug: angleproject:5471
Change-Id: If17ba0120bdb226cc5728bfea83e9085260eba19
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2615862
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Mohan Maiya <[email protected]>
2021-01-08 17:55:59 +00:00
Peng Huang acdb63b89d Remove the checking before accessing to function pointers
Bug: angleproject:5490
Bug: chromium:1161513
Change-Id: I96c5c463a9fd5a337d09f6cefe7836ff52bea90f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2601071
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Peng Huang <[email protected]>
2021-01-07 18:29:03 +00:00
Tim Van Patten 56479b065c Tests: Add FIFA Mobile trace
Test: angle_perftests --gtest_filter=TracePerfTest.Run/*fifa_mobile*
Bug: angleproject:4048
Change-Id: I5cc731ada3ddd9adcb247d7c6f8cf5d823bdc2a3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2600098
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Tim Van Patten <[email protected]>
2021-01-06 20:19:59 +00:00
Jonah Ryan-Davis 956a358d18 GL: Add function pointers for EXT/NV_framebuffer_blit
Allow the GL backend to call BlitFramebuffer through these
extensions.

Bug: angleproject:5474
Change-Id: Ic19b0535056c3e2b098dedc60e2eb8da5f862433
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2602702
Commit-Queue: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-06 20:14:49 +00:00
Jamie Madill dc2cf6fc37 Roll third_party/vulkan-deps/ b08eace32..cbab63796 (17 commits; 1 trivial rolls)
https://chromium.googlesource.com/vulkan-deps/+log/b08eace32e9c..cbab637962d0

$ git log b08eace32..cbab63796 --date=short --no-merges --format='%ad %ae %s'
2021-01-06 chromium-autoroll Roll SPIRV-Tools from d630e5f8c10c to 37c03859de9e (1 revision)
2021-01-06 chromium-autoroll Roll Vulkan-ValidationLayers from 2468aa9630c2 to 98382948dfea (1 revision)
2021-01-06 chromium-autoroll Roll SPIRV-Tools from 1bb80d2778a3 to d630e5f8c10c (1 revision)
2021-01-06 chromium-autoroll Roll glslang from 9325cc013e3d to f77085c307fc (1 revision)
2021-01-05 chromium-autoroll Roll Vulkan-ValidationLayers from 57255a663ed9 to 2468aa9630c2 (1 revision)
2021-01-05 chromium-autoroll Roll Vulkan-Loader from 1f0c7868a438 to 9ba835885ffe (1 revision)
2021-01-05 chromium-autoroll Roll Vulkan-ValidationLayers from 56a96658b750 to 57255a663ed9 (3 revisions)
2021-01-05 chromium-autoroll Roll Vulkan-Loader from 294480cb7f3e to 1f0c7868a438 (1 revision)
2021-01-05 chromium-autoroll Roll Vulkan-Tools from 7554321b88ae to 4cc0932495ec (2 revisions)
2021-01-05 chromium-autoroll Roll Vulkan-Loader from 66a23ac8c566 to 294480cb7f3e (1 revision)
2021-01-05 chromium-autoroll Roll Vulkan-Headers from 85470b32ad5d to 9efc4a631161 (1 revision)
2021-01-05 chromium-autoroll Roll Vulkan-ValidationLayers from aa076dae88e2 to 56a96658b750 (25 revisions)
2021-01-05 chromium-autoroll Roll glslang from f426f652299d to 9325cc013e3d (1 revision)
2021-01-05 chromium-autoroll Roll SPIRV-Cross from e50f7d1ce8e1 to 7b7a21c4058c (3 revisions)
2021-01-05 chromium-autoroll Roll SPIRV-Tools from 17ffa89097b2 to 1bb80d2778a3 (1 revision)
2020-12-21 jmadill Rolling 8 dependencies

Created with:
  roll-dep third_party/vulkan-deps

Bug: angleproject:5390
Change-Id: I6f4a499099211e8990ed038984f41bc5f881c71f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2601340
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-01-06 18:40:58 +00:00
Jamie Madill e91097bf3a Vulkan: Clean up "actual"/"intended" naming.
Clarifies that the GL internal format is an "intended" format
and the Vulkan formats are "actual" formats. This makes all the format
fields use the same consistent naming pattern.

Bug: angleproject:5438
Change-Id: I935a49895109e9e06eae5ef98d5614dfd1128ff8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2605728
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2021-01-05 18:34:33 +00:00
Peng Huang 47ee6a7b09 Add build flags to disable desktop gl backend
This change saves about 100KB on Android

Bug: angleproject:5490
Change-Id: Ieca0e597423f74a917197f381560af5409a9e874
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2601341
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Peng Huang <[email protected]>
2020-12-29 19:42:01 +00:00
Jonah Ryan-Davis 88fec1e88f Code generation for NV_framebuffer_blit
Generate the entry points for NV_framebuffer_blit.

Bug: angleproject:5474
Bug: chromium:1157057
Change-Id: Iadffa24ce7368d8ab6c4bf9d5b6c016276e762f5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2602242
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jonah Ryan-Davis <[email protected]>
2020-12-23 23:39:50 +00:00
angle-autoroll 5c0ba5437b Roll VK-GL-CTS from 54509765b18d to b29bf0434c16 (15 revisions)
Manually update deqp.gni to include new es3cNumberParsingTests files.

https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/54509765b18d..b29bf0434c16

2020-12-19 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/master
2020-12-18 [email protected] Raise min CMake version to 3.10.2
2020-12-18 [email protected] Fix Renderpass storeOp synchronization hazards
2020-12-18 [email protected] Fix back-to-back transfer command synchronization hazards
2020-12-18 [email protected] Simplify code for subgroup builtin mask tests
2020-12-18 [email protected] Fix end of Renderpass synchronization hazards
2020-12-18 [email protected] Fix additional RenderPass loadOp/stencilLoadOp sync hazards.
2020-12-18 [email protected] Fix RenderPass stencilLoadOp synchronization hazards.
2020-12-18 [email protected] Fix RenderPass loadOp synchronization hazards.
2020-12-17 [email protected] Tests for GLES3 number parsing
2020-12-17 [email protected] Tests for multiple clears within render pass
2020-12-17 [email protected] Enable nullDescriptor for AS ray query tests
2020-12-15 [email protected] Test dynamic indexing of AS
2020-12-15 [email protected] Test dynamic indexing of ray queries
2020-12-13 [email protected] Test procedural geometry with complex BB sets

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: I59e4aabcfbf496d02e18ba7b7aa06391ba90f434
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2600639
Reviewed-by: Yuly Novikov <[email protected]>
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: Yuly Novikov <[email protected]>
2020-12-23 00:21:35 +00:00
Jamie Madill 653f6196ce Import Vulkan DEPS from the new vulkan-deps repo.
This will allow the entire set of Vulkan DEPS to be rolled as one.

Bug: angleproject:5390
Change-Id: I10ca4f966f986baf3aab7250935802a3ed1065f1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2587671
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
2020-12-18 18:09:50 +00:00
Paul Thomson 4abf378831 Tests: update WhatsApp trace
The WhatsApp trace was previously captured with the
GL_NV_shader_noperspective_interpolation extension enabled. This
re-capture was made with the extension disabled so the trace can
replayed on devices that don't support the extension.

Test: angle_perftests --gtest_filter="*whatsapp*"
Bug: b/174256233
Change-Id: I9dbf580ed5849b919a72944879be35193632e34a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2593191
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-12-15 23:09:35 +00:00
Mohan Maiya 8f9e17d529 Add EXT_clip_cull_distance extension autogen code
Addition of shader autogen code for EXT_clip_cull_distance extension.

Bug: angleproject:5458
Change-Id: I299528957c0e747fd84987c420588c314f54aae0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2590989
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-12-15 21:54:35 +00:00
Mohan Maiya f32fbb51e8 Add EXT_shader_framebuffer_fetch_non_coherent entry points
Addition of the entry points for
EXT_shader_framebuffer_fetch_non_coherent extension.

Bug: angleproject:5454
Change-Id: I2b8ba5141eed61a0c3ba58aeb2eec12a2071e7f1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2590991
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-12-15 19:45:15 +00:00
Shahbaz Youssefi d9318acc24 Roll VK-GL-CTS from 41331850eb21 to 54509765b18d (18 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/41331850eb21..54509765b18d

2020-12-10 [email protected] Basic tests for VK_EXT_conservative_rasterization
2020-12-10 [email protected] Add test for image copy special case
2020-12-10 [email protected] Add tests for GLES3 vector construction from other types
2020-12-10 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-12-09 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/master
2020-12-09 [email protected] Add drawing tests for Android hardware buffer based color buffer
2020-12-09 [email protected] Test data spilling and unspilling around RT shader calls
2020-12-09 [email protected] Add new tests that verify IgnoreIntersection/TerminateRay corner cases.
2020-12-09 [email protected] Test maxPipelineRayRecursionDepth can be zero
2020-12-09 [email protected] Enable YCbCr filtering tests for non-separable chroma
2020-12-07 [email protected] Fix clang 10.0 build of ray tracing control flow tests
2020-12-07 [email protected] Remove merge conflict markers from mandatory_features.txt
2020-12-07 [email protected] Vulkan Portability support
2020-12-07 [email protected] Disable conflicting fragment shading rate features
2020-12-07 [email protected] Update Vulkan headers
2020-12-07 [email protected] Select SPIR-V for the robustness' compute shaders
2020-12-07 [email protected] Fix buffer offsets in push descriptor tests
2020-12-07 [email protected] Destroy deferred ops before destroying devices

Bug: angleproject:5461
Change-Id: I86f70ea9b77c114ed9495215d83a6fee61adc76a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2586995
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-12-11 17:04:20 +00:00
Kaiyi Li 8707811d6b Add an option to copy the artifact to vendor partition
Add a --copy-to-vendor-partition optional argument to both roll_aosp.sh
and generate_android_bp.py. When specified the root targets will be
generated with vendor: true and a relative install path to egl folder,
so that we can use ANGLE as the Android OpenGLES driver when the system
starts up.

Test: run roll_aosp.sh --copy-to-vendor-partion, build the Android image
with m -j72, load the image with the Android emulator and find all ANGLE
related *.so's are under the /vendor/lib/egl folder.

Bug: angleproject:5456
Change-Id: I38c64e8ea3ad5f5d0cc0b8cd77856f49109b23c7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2568907
Commit-Queue: Tim Van Patten <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-12-10 17:57:38 +00:00
Xiaoxuan Liu 108b759ef9 EGL: Update EGL headers/xml
The new EGL headers introduced 'EGL_NO_X11' which we could use
for ANGLE vulkan display/headless backend.

Changes in CL:

1. Updated include/EGL/egl*.h and scripts/egl.xml based on latest
   EGL repo: https://github.com/KhronosGroup/EGL-Registry
   Note: local modifications to the file were preserved in
   eglext.h, search keyword 'eglext_angle.h' for detail
2. run scripts to update entry_points/loader
   scripts/generate_entry_points.py
   scripts/generate_loader.py
   scripts/run_code_generation.py
3. Update ANGLE code on API 'eglSwapBuffersWithDamage'
4. Format with 'git cl format'

Bug: angleproject:5260
Change-Id: I70ed0dccecf0426929ef8b4775605554d66c5724
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2576314
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-12-10 14:46:28 +00:00
Paul Thomson 463e0b19e3 Tests: add WhatsApp trace
Test: angle_perftests --gtest_filter="*whatsapp*"
Bug: b/174256233
Change-Id: Ie6abb3beae8e184633005a325c5dce51f0afff40
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2574837
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Paul Thomson <[email protected]>
2020-12-07 17:38:23 +00:00
angle-autoroll d6029d65fd Roll VK-GL-CTS from 524e5bcfba33 to 41331850eb21 (39 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/524e5bcfba33..41331850eb21

2020-12-03 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/master
2020-12-03 [email protected] Shorten the ray so that it can't hit other cells
2020-12-03 [email protected] Only use AABBs for the shader record tests
2020-12-03 [email protected] Enable VK_KHR_ray_tracing_pipeline only if needed
2020-12-03 [email protected] Simplify geometry to reduce AABB precision issues
2020-12-03 [email protected] Test terminateInvocation with frag shader side effects
2020-12-03 [email protected] Fix test using protected features without creating a device with them enabled
2020-12-03 [email protected] Fix image cube array tests support checks
2020-12-03 [email protected] Use shader to calculate sample point
2020-12-03 [email protected] Add tests for VK_EXT_4444_formats
2020-12-03 [email protected] Enable random writes for storage texel buffers
2020-12-03 [email protected] Test reading primitive id from frag shader after tessellation
2020-12-03 [email protected] Add a batch of GraphicsFuzz tests
2020-12-03 [email protected] Add a batch of GraphicsFuzz coverage tests
2020-11-27 [email protected] Update AccessInstance::verifyResult() to support 64-bit types
2020-11-26 [email protected] Add dEQP-VK.pipeline.creation_cache_control.*
2020-11-26 [email protected] Add support for ABGR texture formats
2020-11-26 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
2020-11-26 [email protected] Force thread count in deferred host operations
2020-11-26 [email protected] Zero out the hit stride for miss SBT tests
2020-11-26 [email protected] Fix validation errors in terminate invocation tests
2020-11-26 [email protected] Add sliced 3D compressed texture test
2020-11-26 [email protected] Initialize resourceImgLayout before use for all code paths
2020-11-26 [email protected] ExtensionUse variable not set for 1D and 3D images
2020-11-26 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
2020-11-26 [email protected] Test vkCmdBindVertexBuffers2EXT with size and offset
2020-11-26 [email protected] Test SPIR-V switch case jumping to the merge block
2020-11-25 [email protected] Fixes for image format properties tests
2020-11-25 [email protected] Add tests for YCbCr chromaFilter linear filtering
2020-11-24 [email protected] Add ArrayStride decorations in TerminateInvocation tests
2020-11-24 [email protected] Add ray tracing extensions to list of known extensions
2020-11-24 [email protected] Merge vk-gl-cts/vk_khr_ray_tracing into vk-gl-cts/master
2020-11-24 [email protected] Update glslang, SPIR-V headers, tools
2020-11-24 [email protected] Add sparse tests shader_image_atomic_int64
2020-11-24 [email protected] Add tests shader_image_atomic_int64 robustness2
2020-11-24 [email protected] Switch spirv-binaries to Release build
2020-11-20 [email protected] Add tests shader_image_atomic_int64 robustness
2020-11-20 [email protected] Add tests for VK_EXT_shader_image_atomic_int64
2020-11-20 [email protected] Update SPIR-V Tools/Headers, glslang

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: Ifb8d1402514edffbaccc84ee83ae288fad881c16
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2574175
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-12-04 15:18:08 +00:00
Mohan Maiya 8670d6183a Add support for GL_EXT_debug_label
Add support for labeling of GL objects for debug purposes.

Tests: DebugTest.ObjectLabelsEXT*
Bug: angleproject:5337
Change-Id: I792a27c69395ed62da70c3f619bef71776fba432
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2568711
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Mohan Maiya <[email protected]>
2020-12-03 00:49:07 +00:00
Shahbaz Youssefi abe9657839 Vulkan: I/O blocks: Support unsized arrays
Geometry shader inputs have an extra array dimension, which can be
unsized as it can be derived from the primitive type.  This change fixes
the grammar to support such arrays.

Additionally, it enables EXT_shader_io_blocks automatically with
EXT_geometry_shader and EXT_tessellation_shader per spec.

Bug: angleproject:3580
Change-Id: Ia7eb3e8be28c2eef2072dbe2a546fa34973104ab
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2568242
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-12-02 21:39:07 +00:00
Shahbaz Youssefi 8797714c4a Vulkan: Support OES_shader_io_blocks
Enables OES/EXT_shader_io_blocks extensions in Vulkan backends.

With shader I/O blocks, the varyings can now be an array of struct (the
block itself) of struct (nested in the block).

This change is missing a number of features.  In particular, if the
shader I/O block has a location decoration in the middle of the block,
that is not handled yet.

Based on changes from [email protected] and [email protected].

Bug: angleproject:3580
Tests: dEQP-GLES31.functional.shaders.linkage.es31.io_block.*
 dEQP-GLES31.functional.separate_shader.validation.es31.io_blocks.*
 dEQP-GLES31.functional.program_interface_query.program_input.*
 dEQP-GLES31.functional.program_interface_query.program_output.*
Change-Id: I593840475d2365ff6c9ce7b2290f5ee462a30dfb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2567645
Reviewed-by: Mohan Maiya <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-12-02 19:32:07 +00:00
Jamie Madill 234fccfb18 Entry Points: Add egl:: namespace to Display.
This will prevent symbol collision with X11. This fixes the
build integration with Skia.

Bug: angleproject:2621
Bug: angleproject:5416
Change-Id: I6949a375cf9fcdd790b4c40ffb82c7c25bc15315
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2567644
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-12-01 20:32:20 +00:00
Jamie Madill 0be3f2962a Entry Points: Combine desktop GL minor versions.
This reduces the proliferation of small entry point files.

Bug: angleproject:2621
Change-Id: Ib882fd9e32e165279439d5d6cab7205eae0732ac
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2566592
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-12-01 16:58:50 +00:00
Jamie Madill 6edaf0986f Entry Points: Clean up versions lists.
This reduces code duplication in a few generator scripts. The version
lists are now located in registry_xml.

Bug: angleproject:2621
Change-Id: Ia1470f2863753d78d8def1132a20e81d3f8ec4a3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2566591
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-12-01 16:53:09 +00:00
Jamie Madill 3f564fc76e EGL: Generate entry points.
This adds two final auto-generated files for the EGL and EXT extension
entry points. It adds a new data file that stores a mapping between
object types and entry points for associating labeled objects with
certain methods. When we generate errors we record the associated
object in the debug message output.

This places the remainder of the hand-written code in "stub" files.
Going forward the work for implementing new extension entry points
for EGL will be to update the registry XML files and then implement
the corresponding stub methods. Event logging, parameter packing,
and validation are all handled by the auto-generated code.

Bug: angleproject:2621
Change-Id: I28153432802c37b929ff2ea1e1a3e3ce9de91605
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2562680
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-11-30 21:29:39 +00:00
Jamie Madill 1a8eec63cd Rename FromGL to PackParam.
This will allow us to use the same method with EGL without
complications.

Bug: angleproject:2621
Change-Id: I03dea2291adc13025723fe02eb47b76a74cef911
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2562679
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-11-30 20:48:41 +00:00
Jamie Madill 9528641bf1 EGL: Generalize the entry point enum.
This both generalizes the GL entry point enum to include other APIs
like EGL and inserts the EGL and WGL entry points into the enum.

This will faciliate EGL entry point auto-generation and also frame
capture for EGL entry points.

Bug: angleproject:2621
Change-Id: Iaf4310e03b3d55839dd1328362fb29dcef918fab
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2555861
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-11-30 20:30:09 +00:00
Shahbaz Youssefi 01e8b67560 Fix ordering of stages in gl::ShaderType
When iterating over a bitset of stages, they are now processed in the
same order as the rendering pipeline.

Bug: angleproject:5405
Change-Id: If9e0f24be047b060f759e0e1db622a91e24e9646
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2564008
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-11-30 17:53:19 +00:00
Jamie Madill 5968da649c code gen: Be more robust to dirty hashes.
If any JSON files get out of whack this will print which file is
malformed. Also will show any temporary files (e.g. .rej or .orig)
as untracked in the code generation hashes dir.

Bug: angleproject:3691
Change-Id: I534e87bd2ea692182aa558bb80e09fb526e441b0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2564000
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-11-30 14:26:25 +00:00
Jamie Madill 2114fcf2aa More cleanups to run_code_generation.
Moves some include definition blocks into constants. Also fixes a
small case error in the capture headers.

Bug: angleproject:2621
Change-Id: I0e5eadcfd8e16969f3502339f58dbf13eb53f43c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2555860
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-11-26 18:22:37 +00:00
Shahbaz Youssefi 939fcd1a14 Vulkan: Pass in emulated alpha value to ConvertVertex
In prepration for EXT_copy_image taking advantage of ConvertVertex.
Also a small optimization to this ALU heavy shader.

Bug: angleproject:5278
Change-Id: I6520391fe1af608db66f8c362f1038786b2c65e7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2556466
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-11-26 02:29:47 +00:00
Jamie Madill 23d4b64a3b EGL: Auto-generate Windows .def file.
Several entry points were missing from the .def file. The auto-
generation ensures we remain consistent.

Bug: angleproject:2621
Change-Id: Icb4089c4235f43e76ebd588216d4b988e3a2f0f3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2552775
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-11-25 17:02:09 +00:00