Commit Graph
264 Commits
Author SHA1 Message Date
Cody Northrop d667ad2f01 Tests: Add Mobile Legends trace
Test: angle_perftests --gtest_filter=TracePerfTest.Run/*mobile*
Bug: b/163619545
Bug: angleproject:4048
Change-Id: I8ed176afe10b758a22b539d526bf02a9fe35ab92
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2350582
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-08-11 23:58:58 +00:00
Le Hoang Quyen 9385eb35f5 Metal: Generate default shaders to separate files.
Generate default shaders' OS specific versions to separate files to
avoid mtl_default_shaders_autogen.inc becoming too big.

Bug: angleproject:2634
Change-Id: Ie2a39971ec46c36ce13bf5cb72f998f2cbc0ab64
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2332145
Commit-Queue: Le Hoang Quyen <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
2020-08-11 09:59:11 +00:00
angle-autoroll 4ac12af490 Roll Vulkan-Headers from 8446db62f194 to 6eaf979e7366 (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/8446db62f194..6eaf979e7366

2020-08-10 [email protected] Update for Vulkan-Docs 1.2.150

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: Ib5610bf1d44fae79fd759d56d42e24950f714472
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2348254
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-08-11 09:02:42 +00:00
Le Hoang Quyen f37f1dcb16 Metal: Init format table using Metal-Feature-Set-Tables.pdf
- Format table is now initialized using informations from
  https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf.
  Previously, it was setup using gl::GenerateMinimumTextureCaps().

- This CL also adds InitializeTextureDataFunction and LoadFunctionMap to
  mtl::Format. They are needed to properly initialize/convert textures
  with non-normalized formats.

- This CL is prerequisite for integer & floating point format supports.

- New test: DXT1CompressedTextureTest.DXT1Alpha (this test was added
  in the past but was reverted for some reasons).

Bug: angleproject:2634
Change-Id: I5eaad812909a49c4c138d0f65fd21a6a199fcb22
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2332144
Commit-Queue: Le Hoang Quyen <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-08-11 05:55:26 +00:00
Manh Nguyen bbfbea9dd5 Invalid calls' pointer params are no longer captured
Changes call capture methods generation so that invalid calls no
longer capture pointer params.

Bug: angleproject:4817
Change-Id: I2d83d4d3334da8ba34925f80aed2de859a10fae5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2346749
Commit-Queue: Manh Nguyen <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-08-10 21:13:09 +00:00
Cody Northrop 063d754bbe Tests: Update NBA2K20 trace
Significantly reduce setup for this trace. First frame drops
from ~430K lines to ~150K lines of code. Compile/link times
should be bearable.

TBR: [email protected],[email protected]

Test: angle_perftests --gtest_filter="TracePerfTest.Run/*nba*"
Bug: b/160014453
Change-Id: Ia33941012e02ec5488d039501f592dc48e9acfe4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2343454
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-08-07 22:51:01 +00:00
Cody Northrop fc8866cfaf Tests: Update Angry Birds 2 trace
Primarily fix the width/height of the drawing surface,
but also pull in changes from July 2020 update.

TBR: [email protected],[email protected]

Test: angle_perftests --gtest_filter="*Trace*"
Bug: b/157672184
Change-Id: Ia6e16f6d695954f50b3d2a4e8aaaa88514b461d1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2343453
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-08-07 20:41:12 +00:00
angle-autoroll ea952ff32b Roll VK-GL-CTS from 4b40207be32d to b2be8f165978 (32 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/4b40207be32d..b2be8f165978

2020-08-06 [email protected] Merge "Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master"
2020-08-06 [email protected] Add tests for VK_EXT_global_priority
2020-08-06 [email protected] Merge "Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master"
2020-08-06 [email protected] Check per-sample copy results in multisample copy tests
2020-08-06 [email protected] Add a batch of GraphicsFuzz tests
2020-08-06 [email protected] Update KC CTS
2020-08-06 [email protected] Fix pixel pack/unpack in nearest edge tests
2020-08-06 [email protected] fix 1d depth component 16 sizing in layout locations tests.
2020-08-06 [email protected] Convert GraphicsFuzz vkscript to AmberScript
2020-08-05 [email protected] dEQP-VK.graphicsfuzz.stable-rects-vec4-clamp-conditional-min-mix
2020-08-05 [email protected] Test imported signaled sync fd
2020-08-05 [email protected] Merge  vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master
2020-08-04 [email protected] Restore dual source blending tests
2020-08-03 [email protected] Update Vulkan headers
2020-08-03 [email protected] Delete excluded graphicsfuzz test
2020-08-03 [email protected] Throw an error on missing cmake in build config
2020-07-31 [email protected] Fix shaderCullDistance limit checks
2020-07-31 [email protected] Test mipmaps with linear tiling
2020-07-30 [email protected] Enable random descriptor writes for storage buffers
2020-07-30 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master
2020-07-29 [email protected] 1D and 3D image copy and blitting tests
2020-07-29 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-07-29 [email protected] Stop 10bit formats requiring GL_SRGB encoding
2020-07-29 [email protected] Disable a test that access uninitialized variable
2020-07-29 [email protected] Update Amber to fix regression
2020-07-24 [email protected] Support for VkPhysicalDeviceVulkan1{1,2}Properties in framework
2020-07-24 [email protected] Let requireDeviceFunctionality support Android AHB extension
2020-07-24 [email protected] Add timeline semaphore polling tests
2020-07-24 [email protected] Test 3D image blit with differing depth
2020-07-23 [email protected] Update the date in the notice of withdrawal
2020-07-23 [email protected] Notice of withdrawal of Vulkan CTS 1.1.5.x
2020-07-22 [email protected] Allow Bresenham for single-sample non-strict lines

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: Ie9c01a3c47d77bd9f896194c30750b5bffc4eef2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2338820
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-08-06 20:35:32 +00:00
Shahbaz Youssefi e4e2a847da Entry points for ANGLE_external_objects_flags
Bug: angleproject:4912
Bug: fuchsia:52759
Change-Id: If339f096a74cc87d16a6494562711d718a7738ea
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2335019
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-08-05 09:20:36 +00:00
angle-autoroll 26d2e04613 Roll Vulkan-Headers from a0f1f5149d91 to a6d08c75d219 (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/a0f1f5149d91..a6d08c75d219

2020-08-03 [email protected] Update for Vulkan-Docs 1.2.149

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: If21f9c5c44fe24d22037a40a33c98c8a7ec81087
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2336212
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-08-04 08:55:05 +00:00
Jamie Madill 1120739333 Vulkan: Add an overlay counter for descriptor writes.
Note: currently the trace test shows about 1000 descriptor
set writes per frame in NBA2k20.

Bug: angleproject:4911
Change-Id: Id50d05fe405249c80a38dbbe3c96e7bd8c66cbc4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2333398
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-08-03 23:39:41 +00:00
Le Hoang Quyen 69ca10255c Metal: Implement EGL_ANGLE_iosurface_client_buffer.
GL_R16UI format is not supported yet. It will be implemented once
integer textures are implemented in metal back-end.

Bug: angleproject:4847
Bug: angleproject:2634
Change-Id: I60a52c0ce327a524c74e80b18bb15978ac52065b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2329091
Commit-Queue: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-08-03 18:53:18 +00:00
Jonah Ryan-Davis 4f7f438729 Add entry points for OES/EXT_texture_buffer
This extension is core in 3.2

Bug: angleproject:3573
Change-Id: If08736759da2fdc680cfa396d354dbfa97d1a60f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2317040
Commit-Queue: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-08-03 18:08:23 +00:00
Shahbaz Youssefi 41442cce3d Autogenerated changes for GL_EXT_multisampled_render_to_texture2
Bug: angleproject:4836
Change-Id: I86143c6b21ecdbc666ce316b6e4a4b402257f01c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2332957
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
2020-08-01 13:48:53 +00:00
Shahbaz Youssefi 9b1cab0ded Fix validation of glFramebufferTexture2DMultisampleEXT
In preparation for GL_EXT_multisampled_render_to_texture2.  This makes
the validation reuse what's there for glFramebufferTexture2D in addition
to what GL_EXT_multisampled_render_to_texture requires.

Additionally, it uses packed enums for texture target and id.

Bug: angleproject:4836
Change-Id: Ie778c84e1ff5a0cb6615257f2aff9e04395dd5aa
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2332956
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-07-31 21:15:19 +00:00
Jamie Madill f3a38d978f Add a custom trace tests loader.
This custom loader will disambiguate the trace tests gl layer
from the util GL/EGL loader.

Bug: angleproject:4845
Change-Id: I5e8340eb50f736d931302f71f15f556fd9e52081
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2315627
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Reviewed-by: Manh Nguyen <[email protected]>
2020-07-30 22:50:45 +00:00
Cody Northrop aed3d65bdf Tests: Add NBA2K20 trace
Test: angle_perftests --gtest_filter="TracePerfTest.Run/*nba*"
Bug: b/160014453
Bug: angleproject:4048
Change-Id: I4899af05d48ad2900e6d5e44adc5f5e0bdba157e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2326911
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-07-30 17:32:32 +00:00
Peng Huang 4cf2501c67 Add extension EGL_ANGLE_display_semaphore_share_group
For sharing semaphores globally.

Bug: angleproject:4877
Change-Id: I472e0902fd04ca8350d74e6c0ae6925ee930ccf9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2319370
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-07-29 22:33:31 +00:00
Cody Northrop 5f6f47f660 Tests: Update gfxbench traces
Use new capture calls to support offscreen mode.

Test: run_angle_perftests --gtest_filter="*Trace*"
Bug: angleproject:4845
Change-Id: I6d9ea79bd8339b7d5398e34b0407425e80ce1d32
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2327699
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-07-29 21:54:41 +00:00
Shahbaz Youssefi 8adc54693b Vulkan: Generate mipmap in compute
An initial implementation based on AMD's FFX SPD (Single Pass
Downsampler).

Apart from requiring STORAGE_IMAGE support for the image format, the
following limitations are in place due to FFX SPD:

- Image must be 2D or 2D array (including cube maps)
- Image must be single-sampled

The following _can_ be supported, but not yet implemented:

- sRGB formats
- Integer formats
- depth/stencil formats

Bug: angleproject:4551
Change-Id: Ibc4d5cea701cca31e55e3d651540872bbd3b473f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2278713
Reviewed-by: Mohan Maiya <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-07-26 19:38:41 +00:00
Cody Northrop ca8f856ac1 Tests: Update gfxbench traces
Migrate from traces recorded on desktop to traces recorded
on a Pixel 4 XL. This impacts the resolution and framebuffer
config used for the tests. They now more accurately reflect
the numbers seen from running the benchmark directly.

Test: angle_perftests --gtest_filter=TracePerfTest.Run/*
Bug: angleproject:4048
Change-Id: Ib013dfb35c32c6f97bcae76a74cc16d9a5d1a369
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2314896
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-07-22 21:34:37 +00:00
Jamie Madill a4535c18ca Fix trace tests auto-generation.
This moves the trace header inclusion to the cpp file so that the
test itself doesn't need to look at the individual trace headers.
This fixes an include directory dependency. Also removes the FBO
change callback from the generated traces.

Bug: angleproject:4845
Change-Id: I019f0d347a62a81b92bf32110572911111212689
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2314217
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-07-22 19:28:27 +00:00
Jamie Madill 6ca2c11624 Make trace tests a shared library.
This will facilitate intercepting the GL calls and implementing
emulation paths for offscreen redering. Or other EGL/GL features.
It does not yet override the GLES loader and uses the shared
'angle_util' loader as it did before.

Bug: angleproject:4845
Change-Id: I68806c307f59e1852999299e88dc358781817f12
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2305042
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Manh Nguyen <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-07-21 21:06:07 +00:00
Jamie Madill 4fa75b5cf6 Move restricted trace functions to cpp file.
This is a refactoring change only. It will facilitate moving these
functions to a shared library. A shared library will allow us to more
easily override GL functions with an interception layer. The intercept
layer will allow us to do emulation for features like offscreen tests.

Bug: angleproject:4845
Change-Id: I0e00c0c22a26f1bb8faec30a825c71953033f8a9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2305039
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-07-21 20:12:27 +00:00
angle-autoroll 7c79945a9f Roll VK-GL-CTS from 30aa06f22718 to 4b40207be32d (6 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/30aa06f22718..4b40207be32d

2020-07-21 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master
2020-07-21 [email protected] Remove Amber example test
2020-07-20 [email protected] Reintroduce excluded dEQP-VK.binding_model.descriptorset_random tests
2020-07-20 [email protected] Update Vulkan headers
2020-07-20 [email protected] VK_EXT_image_robustness tests
2020-07-20 [email protected] Update glslang, SPIR-V Headers and tools

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: Ie3adac45f59f362fefc67f759356d26924e84d1f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2309638
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-21 12:48:44 +00:00
Geoff Lang 49108a1283 Support BGRA_1010102 IOSurfaces in CGL and Vulkan.
Bug: chromium:1100599
Change-Id: I7bc2c2e35490e28e9f6fe8f2e0c26cdea50650b9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2275731
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2020-07-20 18:58:43 +00:00
angle-autoroll b9411968ec Roll Vulkan-Headers from 858b13a1220a to 83825d55c7d5 (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/858b13a1220a..83825d55c7d5

2020-07-20 [email protected] Update for Vulkan-Docs 1.2.148

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: I8963f84e3fac3b06974e23843617c9014ba0f39f
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2307169
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-20 09:58:52 +00:00
angle-autoroll c754c02a65 Roll VK-GL-CTS from 8726fda3f865 to 30aa06f22718 (5 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/8726fda3f865..30aa06f22718

2020-07-17 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-07-17 [email protected] Test pipeline layout lifetime after ending cmd buffer
2020-07-17 [email protected] Add export/import drm modifier test
2020-07-17 [email protected] Test frag shader side effects are not removed by optimizations
2020-07-17 [email protected] VK_EXT_robustness2 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: Id48ef26916cdd755b73512b15c6fca921c59a1fa
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2304442
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-17 14:27:45 +00:00
Le Hoang Quyen 3e0b61a986 Metal: Compile default shader source files separately.
- Previously all default shader files were included in one file named
  master_source.metal.
- Now they will be compiled separately and link together to generate
  binary shader.
- Also generate a debug binary variant that will be used in debug build.

Bug: angleproject:2634
Change-Id: Ic040835c4a729666e73afeba52f5be839b632396
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2281784
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-07-15 18:00:03 +00:00
Le Hoang Quyen 9277ee7413 Metal: Implement MSAA default framebuffer.
GL_SAMPLE_COVERAGE_VALUE is implemented by inserting gl_SampleMask
writing logic to fragment shader.

New test added: MultisampleTest.ContentPresevedAfterInterruption.
- Skip on D3D11 (Bug: angleproject:4609)

Bug: angleproject:2634
Change-Id: Ib44daf0baccc36ea320596d81713156047da059c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2281783
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-07-15 16:27:43 +00:00
angle-autoroll 249db6da5a Roll Vulkan-Headers from 2a164e9680a5 to 858b13a1220a (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/2a164e9680a5..858b13a1220a

2020-07-13 [email protected] Update for Vulkan-Docs 1.2.147

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: I63fdb76434d1dc6091c69032687bf28ca098c95c
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2296843
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-14 09:43:18 +00:00
Shahbaz Youssefi 95bfb3e5de Vulkan: Fix resolve draw path
If the draw path is taken for resolve, the internal shader previously
calculated (1+sum(sample.a))/sampleCount instead of
sum(sample.a)/sampleCount.  Additionally, due to a typo, the result was
rounded.

This change also fixes a number of off-by-one errors when calculating
src/dst offsets in blit/resolve path.

Tests are added to resolve from default to FBO and vice versa to
exercise the draw path which was otherwise never invoked for color
buffers.

Bug: angleproject:4746
BUg: angleproject:4092
Change-Id: I4b9c181339b89af44b27d61d27a6b3d88cde2eea
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2288224
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
2020-07-14 05:16:05 +00:00
angle-autoroll 5263d5e1ca Roll VK-GL-CTS from 44ef9e08c459 to 8726fda3f865 (8 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/44ef9e08c459..8726fda3f865

2020-07-13 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master
2020-07-12 [email protected] Add support for comments in amber index files
2020-07-12 [email protected] Test texelfetch on uniform texel buffer with packed format
2020-07-08 [email protected] Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
2020-07-06 [email protected] Test transitions between command buffer states
2020-07-04 [email protected] Update SPIR-V Tools/Headers and glslang
2020-07-04 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master
2020-07-04 [email protected] Update Vulkan headers

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: I48bc03267af2f66bb3794f31b060d74f4d4e1343
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2294915
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-13 14:20:03 +00:00
Courtney Goeltzenleuchter f61272fbf3 Add support for VK_KHR_sampler_ycbcr_conversion
This adds ability for applications to import Android Hardware Buffers
(AHBs) as OpenGL images which in turn can be sampled from and/or
written.

This was specifically tested with the common use case of importing a
buffer created by an media decoder and using that as a texture source to
include that video content on the screen. Tested with:
- Angry Birds 2 video player (for ads) requires YUV conversion.
- Basic Media Decoder example:
    https://github.com/android/media-samples/tree/master/BasicMediaDecoder

Bug: b/155487768
Change-Id: I9255450f81aa4daa2aace7205d4f6c3f225abcca
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2175103
Commit-Queue: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-07-09 19:05:52 +00:00
angle-autoroll dcd57068be Roll Vulkan-Headers from 8188e3fbbc10 to db06fce926b0 (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/8188e3fbbc10..db06fce926b0

2020-07-04 [email protected] Update for Vulkan-Docs 1.2.146

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: I399b1bccafada63ed83d384501747ba63aa80544
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2284423
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-07 08:47:34 +00:00
Shahbaz Youssefi 36a97db1bb Vulkan: Compress internal shaders
Shaves ~200KB in binary size.  The compressed SPIR-V blobs are in most
cases a little smaller than 1/3 of the original size.

The internal shader blobs at this point take ~100KB.

Bug: angleproject:2022
Change-Id: I1a2cec073cb1f330632c8dce7a550a0cca1e373d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2280945
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-07-06 20:57:35 +00:00
angle-autoroll 07193df66c Roll VK-GL-CTS from 2e189d3854db to 44ef9e08c459 (27 revisions)
https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS.git/+log/2e189d3854db..44ef9e08c459

2020-07-04 [email protected] Add tests for VK_EXT_private_data
2020-07-03 [email protected] Uncomment gen_framework.py
2020-07-03 [email protected] Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/master
2020-07-03 [email protected] Test atomic operations with VK_KHR_buffer_device_address
2020-07-03 [email protected] Tests for global atomic operations
2020-07-03 [email protected] Update VK_EXT_fragment_density_map2 names
2020-07-03 [email protected] Add atomic operation tests for multisample storage images
2020-07-02 [email protected] Add core feature bit checks for Vulkan 1.1
2020-07-02 [email protected] Prevent leaking extra fences
2020-07-02 [email protected] Ensure swizzle identities work with their equivalent mappings
2020-07-02 [email protected] Fix VK_AMD_shader_trinary_minmax feature checks
2020-07-02 [email protected] Add test for writing to an SSBO array
2020-06-26 [email protected] Merge vk-gl-cts/github-master into vk-gl-cts/master
2020-06-26 [email protected] Add missing mandatory features
2020-06-26 [email protected] Remove handwritten array from the driver properties test
2020-06-26 [email protected] Fix framework device properties generated code
2020-06-26 [email protected] Robustness2 features are enabled by default
2020-06-26 [email protected] Move texture parameter checking to checkSupport()
2020-06-26 [email protected] Separate types and cases in random descriptor set tests
2020-06-25 [email protected] Add ModfStruct and FrexpStruct to GLSL precision tests
2020-06-19 [email protected] Add tests for SNORM clamping
2020-06-19 [email protected] Add tests for VK_AMD_texture_gather_bias_lod
2020-06-19 [email protected] Test vkQueueBindSparse with timeline semaphores
2020-06-19 [email protected] Test vertex buffer accesses with stride zero
2020-06-19 [email protected] Test maximum compute work group sizes
2020-06-19 [email protected] Add modfStruct comparison tests
2020-06-19 [email protected] Add tests for VK_EXT_fragment_density_map2

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: I6d13d94fbc5f3931e7ab7a8beb4cca2767085061
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2281477
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-07-04 12:54:28 +00:00
Shahbaz Youssefi d38c75c5ea Vulkan: Remove BufferUtils shader
This was the first internal shader written for prototyping UtilsVk.  It
ended up never having a user.

Bug: angleproject:2022
Change-Id: I846dcc216c4c018f5bda16ad67463f698b8e1c56
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2280944
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-07-03 18:46:33 +00:00
Ian Elliott da3e6451c1 Vulkan: Fix fbo_invalidate tests for pre-rotation
The BlitFramebuffer path wasn't properly supporting stencil and MSAA
paths for pre-rotation:

1) The stencil path on Android isn't going through
   UtilsVk::blitResolveImpl, but requires changing
   UtilsVk::stencilBlitResolveNoShaderExport for rotation.

2) MSAA resolves requires rotating clippedSourceArea.

Test: angle_deqp_gles3_tests --gtest_filter=dEQP.GLES3/functional_fbo_invalidate_\*
Bug: b/158337857
Change-Id: I092cab302c247ff9b2e262b12de3d1a56a257f8e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2269499
Commit-Queue: Ian Elliott <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
2020-06-26 18:58:22 +00:00
Ian Elliott b067db752d Vulkan: Fix copySubImageImplWithDraw() for pre-rotation
This involves cases of copying from a rotated default framebuffer.
Various adjustments are needed for where the source is and its
relationship to gl_FragCoord in the custom ImageCopy fragment
shaders.  Various tests are affected, including the following:

Test: angle_deqp_gles2_tests --gtest_filter=dEQP.GLES2/functional_texture_specification_basic_copy*teximage2d_*
Test: angle_deqp_gles3_tests --gtest_filter=dEQP.GLES3/functional_texture_specification_basic_copy*teximage2d_*
Bug: b/158245571
Bug: b/157933235
Change-Id: Id9ec56d849cd2268954dd82623a7632a10fb8e8f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2248204
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2020-06-26 16:47:45 +00:00
Shahbaz Youssefi 6ee18c2d01 Vulkan: Remove debug symbols from internal shaders
Shaves ~47KB on binary size.

Bug: angleproject:2022
Change-Id: Ifc861c4308a806d17f499bf2126009a59125b9f2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2249566
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-06-25 22:18:56 +00:00
Ian Elliott 70e706f43d Vulkan: Fix glBlitFramebuffer() for pre-rotation
This involves cases of blitting to/from a rotated default framebuffer,
potentially with scaling in one or both dimensions.  Various
adjustments are needed at different times in the stack, including in
the custom BlitResolve fragment shaders.  Various tests are affected,
including the following:

Test: angle_end2end_tests --gtest_filter=*EGLPreRotationLargeSurfaceTest.OrientedWindowWithBlitFramebuffer
Test: angle_deqp_gles3_tests --gtest_filter=dEQP.GLES3/functional_fbo_invalidate_\*
Bug: b/158337857
Change-Id: Ibb176e4215784e85c0f34e6e1c22ba662517fed2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2242359
Reviewed-by: Ian Elliott <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2020-06-24 13:18:48 +00:00
Jamie Madill 60672e7bf4 Update glslang_validator binary for Windows.
This binary was updated using update_glslang_binary.py.
Please see instructions in tools/glslang/README.md.

Bug: None
Change-Id: Idf76f16d7f05ce1642c27f087e40575806aa5d00
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2261232
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-06-23 17:02:58 +00:00
Shahbaz Youssefi ce3d3413b3 Update glslang_validator binary for Linux.
This binary was updated using update_glslang_binary.py.
Please see instructions in tools/glslang/README.md.

Bug: None
Change-Id: Ib1c3ae292a90ec6aabc79b9396ca2e35007edc16
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2260573
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-06-23 16:04:14 +00:00
angle-autoroll d11c61f63a Roll Vulkan-Headers from f31524575668 to 8188e3fbbc10 (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/f31524575668..8188e3fbbc10

2020-06-21 [email protected] Update for Vulkan-Docs 1.2.145

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: I17d845ae9852bec65a04d1b186b17b9f31e3a67a
Bug: None
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2256862
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-06-22 08:42:50 +00:00
Cody Northrop c028fc73b8 Tests: Update traces to include draw surface width/height
The traces now contain the original resolution they ran with,
so we can set that based on testID.

This fixes correctness problems on Android, where only a fraction
of the screen could be seen during replay.

Bug: b/159238311
Test: angle_perftests --gtest_filter="*Trace*"
Change-Id: I47b92ee31681998260bad059cde0856a25ae0fc6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2250863
Commit-Queue: Cody Northrop <[email protected]>
Reviewed-by: Manh Nguyen <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-06-19 17:32:23 +00:00
Shahbaz Youssefi e7ae237eb9 Vulkan: ANGLE_copy_texture_3d support
Bug: angleproject:4748
Test: CopyTexImage*Vulkan:Texture3DCopy*Vulkan:Texture2DArrayCopy*Vulkan
Test: dEQP.KHR_GLES3/copy_tex_image_conversions_required_cubemap*cubemap*
Change-Id: Ifdc3d455ca8c9e732d0adf4afa9e2809d780ae18
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2246320
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-06-19 05:30:00 +00:00
Cody Northrop c81f0b7b92 Tests: Update trace timestamps
Move all timestamps forward to get CQ working again.

[email protected],[email protected]

Test: angle_perftests --gtest_filter="*Trace*"
Bug: angleproject:4762
Change-Id: I1aff31a705d9a014d4ec3463d3d7b4bf6f3208a2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2252542
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Cody Northrop <[email protected]>
2020-06-18 22:01:07 +00:00
angle-autoroll 90e6fad964 Roll Vulkan-Headers from 9d2dfca53b75 to f31524575668 (1 revision)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers.git/+log/9d2dfca53b75..f31524575668

2020-06-15 [email protected] Update for Vulkan-Docs 1.2.144

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],[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: I3b46b86fc163edc7cf57fb9c99d9231e35b57224
Bug: None
Tbr: [email protected],[email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2249939
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-06-17 18:12:11 +00:00
Shahbaz Youssefi b900f4e21c Vulkan: Use GPU path for copy to sRGB textures
To avoid creating aliasing views for sRGB textures, the ImageCopy
texture will do/undo sRGB transformation such that the final result is
as-if both source and destination views were linear.

Possible future optimizations:

- If either of source or destination has already been created with the
  MUTABLE flag, i.e. has a linear view already available, that can be
  used.
- If destination is sRGB but not renderable while its corresponding
  linear format is, and if the image is already created with the MUTABLE
  flag, using the linear view would allow the copy to go through the GPU
  instead of the CPU.

Bug: b/157934810
Bug: angleproject:4092
Change-Id: I43aaf882c90e1c60d0d9eb04636c203fc04090a4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2241622
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Antonio Maiorano <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-06-16 18:49:05 +00:00