Commit Graph
11498 Commits
Author SHA1 Message Date
Alexis Hetu 9819e9ed7b GL_EXT_read_format_bgra support
Implemented DetermineBGRAReadFormatSupport in order to allow enabling
readFormat when possible with the Vulkan backend.

While reading the spec, I realized that ANGLE only seems to care
about BGRA8888 and not the new types mentioned in the extension.
Logged a new issue (http://anglebug.com/4302) to track this.

Bug: angleproject:4294
Change-Id: I071ed89574de9b4088df2301c317d3769cb31ce6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003237
Commit-Queue: Alexis Hétu <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-17 05:43:19 +00:00
Alexis Hetu eb06bc2439 GL_EXT_float_blend support
DetermineFloatBlendSupport was added to be able to set floatBlend to
true if requirements are met. Essentially GL_EXT_float_blend complements
GL_EXT_color_buffer_float by making any non-blendable formats blendable.

Bug: angleproject:4291
Change-Id: I40d6bb7a93b8847a63de2d25c6a8dc411d6d8fbb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2001479
Commit-Queue: Alexis Hétu <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2020-01-17 04:54:39 +00:00
Alexis Hetu 41f6150edb Stubs for new required extensions
Added stubs for these soon to be added extensions:
- GL_OES_depth_texture_cube_map
- GL_EXT_read_format_bgra
- GL_NV_depth_buffer_float2
- GL_NV_read_depth
- GL_NV_read_stencil

Bug: angleproject:4293
Bug: angleproject:4294
Bug: angleproject:4295
Change-Id: I56cf1fda377e48521f30bd11f5776409bfb88701
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2001480
Commit-Queue: Alexis Hétu <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-17 00:35:26 +00:00
Alexis Hetu e0a28ba4cf Add blendable checks to GL_EXT_color_buffer_float
The GL_EXT_color_buffer_float spec
https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_color_buffer_float.txt
mentions that some of the formats must be blendable:
"Blending applies only if the color buffer has a fixed-point or
 floating-point format. If the color buffer has an integer format,
 proceed to the next operation. Furthermore, an INVALID_OPERATION
 error is generated by DrawArrays and the other drawing commands
 defined in section 2.8.3 (10.5 in ES 3.1) if blending is enabled
 and any draw buffer has 32-bit floating-point format components."

So any non 32-bit floating-point must be blendable.

Bug: angleproject:4291
Change-Id: I850fb13b71e4ad03fd07e2a265896c9106bc0ce1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2001478
Commit-Queue: Alexis Hétu <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2020-01-16 23:56:03 +00:00
Rafael Cintron 920ef28a46 Fix FL10_0 multisampling
The last render-to-texture commit broke FL10_0 multisampling by
unconditionally asking for D3D11_STANDARD_MULTISAMPLE_PATTERN
quality setting.

Per the documentation on
https://docs.microsoft.com/en-us/windows/win32/api/d3d11/ne-d3d11-d3d11_standard_multisample_quality_levels
applications can only request the standard multisample pattern on
feature levels 10_1 and above.

For feature levels 10_0 and below, we'll stick with asking for a
quality level of 0 like the code previous did.

Bug: chromium:1036367
Change-Id: I0dd7704cf144ebce952e1f7d5e148d3382891aed
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003238
Commit-Queue: Rafael Cintron <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-16 22:54:21 +00:00
Jonah Ryan-Davis d968972519 Suppress UniformsBenchmark perftest on Win/NVIDIA/Vulkan
Started failing on Jan 11, 2020

Bug: chromium:1041672
Change-Id: Ie51c0d363b49025c607c32a1858cdaf8c38ebf87
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003013
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jonah Ryan-Davis <[email protected]>
2020-01-16 21:35:50 +00:00
Mohan Maiya df0203a9ae EGL: Add support for EGL_EXT_pixel_format_float extension
Add support for floating point configs. On backends that
support rendering to floating point formats, add them to
EGL's frambuffer config list

Bug: angleproject:3958
Tests: dEQP-EGL.functional.wide_color.*fp16*
       angle_end2end_tests --gtest_filter=EGLFloatSurfaceTest*
Change-Id: Ie65f63013483267985c2b308567bf5025acf750e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993686
Commit-Queue: Mohan Maiya <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-16 21:31:20 +00:00
Alexis Hetu d151b4592b Blendable check
- Added a blendable check to InternalFormat
- Set the blendable check to the same as the Renderbuffer check for
  most formats, except true integer formats and 32F formats
- True integer formats never support blending
- 32F formats support blending based on the GL_EXT_float_blend

Bug: angleproject:4291
Change-Id: Icffdd3e6d8791303bdfdad9ec01cfd9a1d511af0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1999495
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Alexis Hétu <[email protected]>
2020-01-16 21:08:50 +00:00
Jamie Madill 441b72f079 Vulkan: Make ContextVk own ResourceUseList.
This moves the resource use tracking functionality out of CommandGraph.
Making the list a separate class helps the implementation avoid tricky
circular include problems.

Bug: angleproject:4029
Change-Id: I3288fc685b21e949f12b0796109a2b7bb117c249
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2002931
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-01-16 20:41:31 +00:00
James Darpinian 82f2cf31e5 Require DEBUG_TRACE to enable expensive state validation
ANGLE_STATE_VALIDATION_ENABLED is expensive, adding a lot of overhead
to draw calls in debug mode. It's causing some of WebKit's layout tests
to time out. Instead of enabling it for all debug builds, let's only
enable it when ANGLE_ENABLE_DEBUG_TRACE is specified.

Bug: angleproject:3900
Change-Id: I9866d7afbb5666f35c56539820d591953bdf7650
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1994440
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: James Darpinian <[email protected]>
2020-01-16 20:00:58 +00:00
James Darpinian 51179335b6 Remove literal tab characters from generate_parser_tools.py
WebKit's tools don't like literal tab characters in their repo.

Bug: angleproject:3439
Change-Id: Ifd26e0bbcfaa604ed26f6a42dd7d2248e94dfeaa
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003929
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: James Darpinian <[email protected]>
2020-01-16 19:12:30 +00:00
Jamie Madill 4ff1651e0b Vulkan: Add ResourceUseList helper.
This abstracts away the ResourceUse tracking from CommandGraph. Pulling
it out will allow us to more easily swap resource use tracking into
ContextVk. The command graph is eventually going away so we need to
move functionality out of CommandGraph.

Bug: angleproject:4029
Change-Id: Icc3bcc824510b03e91f8ff010a82751a81516bfa
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2002930
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-01-16 19:10:11 +00:00
angle-autoroll bdb0f8a524 Roll third_party/vulkan-tools/src 2c436960d2c0..4792a6854238 (3 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools.git/+log/2c436960d2c0..4792a6854238

git log 2c436960d2c0..4792a6854238 --date=short --first-parent --format='%ad %ae %s'
2020-01-15 [email protected] vulkaninfo: handle previous driver versions
2020-01-15 [email protected] build: Update known good for 1.2.131 Vulkan Header and Loader
2020-01-15 [email protected] scripts: Tweak extension detection

Created with:
  gclient setdep -r third_party/vulkan-tools/src@4792a6854238

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-tools-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I21a0c7f08ed37f247e11de9d42a67beee6681825
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003122
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-16 17:33:40 +00:00
Alexis Hetu ddb99f2186 Support blendable capability
Vulkan distinguishes between a texture format that can be used as a
render target (VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT) and one that
supports blending (VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT).
This cl adds a blendable capability and sets it based on the
appropriate bit. It also adds the check in GetFormatSupportBase(),
but all uses of it are currently set to false.

In terms of behavior, this cl should be noop.

Bug: angleproject:4291
Change-Id: Ib151ac8ab7b69311b7fdef15ad87186d13e3ed78
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1999494
Commit-Queue: Alexis Hétu <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2020-01-16 17:25:41 +00:00
angle-autoroll 50a69a14e3 Roll third_party/vulkan-headers/src f63dd5c9d874..881bbb347a08 (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers/+log/f63dd5c9d874..881bbb347a08

git log f63dd5c9d874..881bbb347a08 --date=short --first-parent --format='%ad %ae %s'
2020-01-15 [email protected] Update for Vulkan-Docs 1.2.131

Created with:
  gclient setdep -r third_party/vulkan-headers/src@881bbb347a08

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

[email protected]

Bug: None
Change-Id: I2f78b6d68988172304e50fb17ed882b117faa77c
Tbr: [email protected]
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2004368
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-16 16:22:10 +00:00
Jonah Ryan-Davis df0683b199 Expose GL_ANGLE_framebuffer_blit in NULL backend
The passthrough ASAN fuzzer was hitting a null-dereference trying  to
call glBlitFramebuffer when ANGLE was not exposing it. The fuzzer uses
the NULL backend so we can just expose it.

Bug: chromium:1029829
Change-Id: I0f65c65284756fa21821155559a6404d95e25647
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003230
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Jonah Ryan-Davis <[email protected]>
2020-01-16 15:37:30 +00:00
Mohan Maiya 01c0d6bd8d Vulkan: Use dynamic buffers for staged updates
Dynamic buffers are used to perform staged updates to
BufferVk objects instead of recreating staging buffers
for each update.

Bug: angleproject:4292
Change-Id: I0f64c821c97e0e6014e9df1d4f99e2f495838025
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2001461
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-01-16 14:15:09 +00:00
Corentin Wallez 0d2c75f4d5 DisplayGLX::isValidNativeWindow, avoid X11 exiting the program
The previous implementation of the function had an incorrect comment
that implied XQueryTree was a great way to check if a Window is valid.
Any X11 function taking a Window is a good candidate, what we need to be
careful about is X11 exiting the program on any error.

Replace it with a call to  XGetWindowAttributes while ignoring X11
errors.

This fix was found while implementing similar functionality in Dawn.

Bug: dawn:269
Change-Id: I777e59cddbe94baf63286d11887b58c63ac2b66c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2001301
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Corentin Wallez <[email protected]>
2020-01-16 10:27:09 +00:00
angle-autoroll 0c6c9a0d53 Roll third_party/glslang/src d203754bc116..3ed344dd784e (3 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang/+log/d203754bc116..3ed344dd784e


Created with:
  gclient setdep -r third_party/glslang/src@3ed344dd784e

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/glslang-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: Idd8bccd67ffcda6115477f0e9fb3bcac97ea7dff
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003821
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-16 09:34:09 +00:00
angle-autoroll 991e510efd Roll third_party/vulkan-validation-layers/src 834baaf8b227..ab883b9d257e (5 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/834baaf8b227..ab883b9d257e

git log 834baaf8b227..ab883b9d257e --date=short --first-parent --format='%ad %ae %s'
2020-01-15 [email protected] tests: Added tests for ycbcr sampler validation check
2020-01-15 [email protected] stateless: Added YCBCR sampler checks
2020-01-14 [email protected] tests: Add destroy null handle tests to best practices
2020-01-14 [email protected] bestpractices: Check for null handle when freeing memory
2020-01-14 [email protected] layers: Fix the logic in VUID links generation

Created with:
  gclient setdep -r third_party/vulkan-validation-layers/src@ab883b9d257e

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-validation-layers-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I58971f69536be68f387694c357d9e9d77c318074
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003125
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-16 08:00:10 +00:00
angle-autoroll 44aebd9172 Roll third_party/spirv-tools/src 8013d477aeac..323a81fc5e30 (3 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/8013d477aeac..323a81fc5e30


Created with:
  gclient setdep -r third_party/spirv-tools/src@323a81fc5e30

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/spirv-tools-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I7edd382098175d998315e8b4d9665aa09124330a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003123
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-16 07:57:21 +00:00
angle-autoroll 8aac6a596f Roll third_party/SwiftShader 488d35ac0b1c..5fc197dc7669 (13 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/488d35ac0b1c..5fc197dc7669

git log 488d35ac0b1c..5fc197dc7669 --date=short --first-parent --format='%ad %ae %s'
2020-01-15 [email protected] Disable MSVC warning 4065
2020-01-15 [email protected] Vulkan: Disable SPIR-V preprocessing when debugging
2020-01-15 [email protected] Produce less debug info in Kokoro builds
2020-01-15 [email protected] Refactor binary group operations
2020-01-15 [email protected] Replace positive/negative_inf() with infinity()
2020-01-15 [email protected] SpirvShader: Stub OpenCL.DebugInfo.100
2020-01-15 [email protected] System/Types.hpp: Make vec(T replicate) constexpr
2020-01-15 [email protected] SpirvShaderDebugger: Add flag for printing opcodes
2020-01-15 [email protected] SpirvShader: 2-way imported extensions lookup
2020-01-15 [email protected] .vscode: Add spirv-tools-ext to include path
2020-01-14 [email protected] C++14: Use enum class builtin hashing
2020-01-14 [email protected] C++14: Use std::enable_if_t instead of our own
2020-01-14 [email protected] Add initial stub implementation of AHB

Created with:
  gclient setdep -r third_party/SwiftShader@5fc197dc76

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

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

Bug: angleproject:4299
Tbr: [email protected]
Change-Id: I0badcf80f1be1ca17654a1d2f09f420e313dd540
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003124
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-16 07:57:19 +00:00
Ian Elliott a7b91502cd Vulkan: Updated expectations after recent fixes
Bug: angleproject:3569
Bug: angleproject:3596
Bug: angleproject:4106
Bug: angleproject:4108
Bug: angleproject:4300
Change-Id: Iab88bf5db19af802ad41ef8bf68f643420857989
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003233
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2020-01-15 21:49:06 +00:00
Artem Bolgar ffdd58f5c0 Fixing OVR_multiview and OVR_multiview2 issues
Found two issues when native OVR_multiview and OVR_multiview2 extensions are generated.
1. OVR_multiview got replaced by the OVR_multiview2 in the translated shader (ESSL & GLSL)
2. Duplicate #extension OVR_multiview2 (for Fragment & Vertex) and 'layout (num_views=x)' (for Vertex) got generated into the translated shader.

Bug: angleproject:4247
Change-Id: I9a550883eeb326d95af4557578f8202a9493f4ec
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1983802
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Rafael Cintron <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Geoff Lang <[email protected]>
2020-01-15 19:07:46 +00:00
Kenneth Russell 86f7309717 Upstream support for iOS Simulator.
Originally authored in the WebKit repository:
https://bugs.webkit.org/show_bug.cgi?id=205618

Has been tested with WebKit's WebGL backend on top of ANGLE inside the
iOS Simulator. TODOs will be addressed in forthcoming CLs.

Bug: angleproject:4263
Change-Id: Ic879866aaee5f933599d956b0646d0c01db55d0d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1995824
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Commit-Queue: Kenneth Russell <[email protected]>
2020-01-14 21:08:21 +00:00
Shahbaz Youssefi 2e1beb4005 Add a test to expose translator bug w.r.t short circuiting
Bug: angleproject:3829
Change-Id: I872118f145886eecaed1680268e95419385b9d9e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2001237
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-01-14 19:41:01 +00:00
Shahbaz Youssefi feb3b6cc6f Vulkan: Remove row->col major shader transformation
This was done based on the incorrect assumption that Vulkan GLSL doesn't
allow layout qualifiers on interface block fields.  This was due to
glslang compile failures in some shaders that included mixed row- and
column-major fields in interface blocks.

However, the failures were only in the case the interface block is
inactive, in which case glslang wrapper previously replaced the
layout/qualifier of the interface block with |struct|, which left the
shader with an unused struct definition with fields that have layout
qualifiers; an invalid shader.

The change introduced in
https://chromium-review.googlesource.com/c/angle/angle/+/1951523
removes inactive shader interface declarations.  The above scenario thus
never occurs, rendering the row- to column-major transformation
unnecessary.

Bug: angleproject:3443
Change-Id: Ice34a0fc6e047b79a4d44f04b730ec59bdfafe33
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1961098
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-01-14 17:52:58 +00:00
jchen10 b09d46cc79 Add P010 stream test
Makes sure P010 stream can work correctly.

Bug: chromium:1033416
Change-Id: I1b49568cd667697337335a0eca74504bd0e36f5c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1996912
Reviewed-by: Jie A Chen <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-01-14 17:42:29 +00:00
Jamie Madill 740c4ea7b1 Invoke the standalone test harness runner.
Previously we were still calling GoogleTest directly. This change
switches the test main funtions to call the standalone harness. Only
affects standalone and shouldn't affect the tests in Chromium or on
the current test setup.

Bug: angleproject:3162
Change-Id: Ia5a5a73d47c0b47b4df8f54cd6df71da2d878847
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1998661
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
2020-01-14 17:08:45 +00:00
Jamie Madill 238adb7a12 Fix test harness running disabled tests.
Adds special handling for the DISABLED_ GTest test name. Fixes the test
for the test suite harness itself when run with the new "--bot-mode"
flag.

Bug: angleproject:3162
Change-Id: Idf34098d2d6bcb78263773be7b01c55df9ec624b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1998660
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
2020-01-14 16:49:15 +00:00
Jamie Madill 5eadaf85b4 Fix and improve UWP build.
Reorganizes the build files to work with a more divided setup. It is
unclear if we'll ever be able to run tests in a UWP config. This at
least sets up the organization so it would at some point be possible.

Bug: angleproject:4182
Change-Id: I49dddfcdc0118b11466fe171f949c28d101ac6a2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1953484
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
2020-01-14 15:17:24 +00:00
Shahbaz Youssefi 680a7d3bb9 Vulkan: Add test that exposes sampler refactor bug
Bug: angleproject:4211
Change-Id: I9e9cdacd4f24131101029d17932625e2e3c7d7e0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1957836
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
2020-01-14 15:10:04 +00:00
Jamie Madill 683dd1d6a8 GN: Move util build code into util/BUILD.gn.
Prepratory clean up for WinUWP support.

Bug: angleproject:4182
Change-Id: I97cc6cb42a50c6b57ca7d375d1e0a6b3da7aa9d7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1998673
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Yuly Novikov <[email protected]>
2020-01-14 15:05:34 +00:00
angle-autoroll 54d0d53959 Roll third_party/vulkan-validation-layers/src b96d6528883e..834baaf8b227 (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/b96d6528883e..834baaf8b227

git log b96d6528883e..834baaf8b227 --date=short --first-parent --format='%ad %ae %s'
2020-01-13 [email protected] layers: Default vuid links to spec repo search

Created with:
  gclient setdep -r third_party/vulkan-validation-layers/src@834baaf8b227

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-validation-layers-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: Id4efc3fd3e1d19026e52bcbb27ef7c0e260f2797
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1999621
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-14 09:16:44 +00:00
angle-autoroll f26c81958a Roll third_party/SwiftShader b0ca2a89e255..488d35ac0b1c (9 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/b0ca2a89e255..488d35ac0b1c

git log b0ca2a89e255..488d35ac0b1c --date=short --first-parent --format='%ad %ae %s'
2020-01-13 [email protected] Vulkan/Debug: Fix `DAP_LOG` macro
2020-01-13 [email protected] CMakeLists.txt: Copy OpenCLDebugInfo100.h to new dir
2020-01-13 [email protected] .vscode: Define ENABLE_VK_DEBUGGER
2020-01-13 [email protected] Regres: Roll dEQP 1.1.6 forward
2020-01-13 [email protected] Rename NonNormalized to Unnormalized
2020-01-13 [email protected] Disable the GL_NV_framebuffer_blit extension
2020-01-13 [email protected] Disable the GL_APPLE_texture_format_BGRA8888 extension
2020-01-13 [email protected] Allow verbal bug IDs
2020-01-13 [email protected] Validate the bug ID format in Kokoro presubmit

Created with:
  gclient setdep -r third_party/SwiftShader@488d35ac0b

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

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

Bug: None
Tbr: [email protected]
Change-Id: I7ee074ac9e4fa93dfc71ec5248e5e67668984ada
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2000043
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-14 08:06:14 +00:00
angle-autoroll 9805f027b3 Roll third_party/spirv-tools/src 18b3b94567a9..8013d477aeac (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/18b3b94567a9..8013d477aeac


Created with:
  gclient setdep -r third_party/spirv-tools/src@8013d477aeac

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/spirv-tools-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: Ic2d9f5ab6e006d389604537be974a94eb050017e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1999622
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-14 07:56:44 +00:00
Ian Elliott 8b3a0fa810 Vulkan: Update expectations SwS change fixes 2 tests
Changing SwiftShader to return:

    VK_SAMPLE_COUNT_1_BIT | VK_SAMPLE_COUNT_4_BIT for

for VkPhysicalDeviceLimits::sampledImageIntegerSampleCounts fixes two
tests that were failing with SwS.

This also fixes the expectations file for another test.

Bug: angleproject:4260
Bug: angleproject:4259
Bug: angleproject:3565
Change-Id: I698468ff8421b1c8556c8671b173e1cfde6b7f6e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1999484
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2020-01-14 00:36:21 +00:00
Kenneth Russell 11c35d0e12 Fix uninitialized variable in driver bug workaround.
Bug: angleproject:4267
No-Try: True
Change-Id: I5d9846779e4ac27313ec57b6ded935dbb40e1970
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1995829
Commit-Queue: Kenneth Russell <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-13 22:15:38 +00:00
angle-autoroll c6ff255b60 Roll third_party/glslang/src 51813670627c..d203754bc116 (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang/+log/51813670627c..d203754bc116


Created with:
  gclient setdep -r third_party/glslang/src@d203754bc116

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/glslang-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I83c4c132afd6203fe09fe709721faca0c03614c3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993888
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-13 09:14:47 +00:00
angle-autoroll 9da223b3e8 Roll third_party/SwiftShader 110236f3ce70..b0ca2a89e255 (7 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/110236f3ce70..b0ca2a89e255

git log 110236f3ce70..b0ca2a89e255 --date=short --first-parent --format='%ad %ae %s'
2020-01-11 [email protected] Pipeline: Implement the SpirvShader debugger.
2020-01-11 [email protected] Regres: Update test lists @ 0f8f361a
2020-01-10 [email protected] Regres: Update test lists @ 110236f3
2020-01-10 [email protected] Removed a few parentheses for slightly better clang formatting
2020-01-10 [email protected] A2R10G10B10 Support
2020-01-10 [email protected] Change sampledImageIntegerSampleCounts to sampleCounts
2020-01-10 [email protected] Add the PowerVR SDK as a git submodule

Created with:
  gclient setdep -r third_party/SwiftShader@b0ca2a89e2

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

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

Bug: None
Tbr: [email protected]
Change-Id: I598844bc14cd0c3654a6ace7f17bd2040cc80a36
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993886
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-13 08:02:37 +00:00
angle-autoroll 6a7274248d Roll third_party/vulkan-validation-layers/src c17344df6cca..b96d6528883e (14 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/c17344df6cca..b96d6528883e

git log c17344df6cca..b96d6528883e --date=short --first-parent --format='%ad %ae %s'
2020-01-10 [email protected] tests: Fix YCbCr sampler test
2020-01-10 [email protected] corechecks: Fix issues with separate depth/stencil layouts
2020-01-10 [email protected] layers: Report valid spec links on error
2020-01-10 [email protected] tests: Test vkCmdExecuteCommands into a Secondary
2020-01-10 [email protected] tests: Added test for VUID 01618
2020-01-10 [email protected] tests: Added test for VUID 01608
2020-01-10 [email protected] tests: Added test for VUID 01588
2020-01-10 [email protected] layers: Added VK_IMAGE_CREATE_DISJOINT_BIT validation
2020-01-10 [email protected] tests: Added 01564 test to DSAspectBitsErrors
2020-01-10 [email protected] layers: Added support for VUID 01564
2020-01-10 [email protected] tests: Added test for VUID 01648
2020-01-10 [email protected] layers: Added support for VUID 01648
2020-01-10 [email protected] tests: Added 01560 test to ImageBufferCopyTests
2020-01-10 [email protected] layers: Added support for VUID 01560

Created with:
  gclient setdep -r third_party/vulkan-validation-layers/src@b96d6528883e

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/vulkan-validation-layers-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: I7b9edbae8b42a41042e8adec7a5c3b12dd8be724
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993887
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-13 08:00:37 +00:00
angle-autoroll 97f831fc1e Roll third_party/spirv-tools/src fb2e819819ef..18b3b94567a9 (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/fb2e819819ef..18b3b94567a9


Created with:
  gclient setdep -r third_party/spirv-tools/src@18b3b94567a9

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/spirv-tools-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/+/master/autoroll/README.md

Bug: None
Tbr: [email protected]
Change-Id: Ied4595d3d1b2ea5d7352f719c441c9b2d8baa75f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993889
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-13 07:53:37 +00:00
Yan, Shaobo 52cb2a1a73 Allow SamplerVideoWEBGL can sampler compatible texture type
For current WEBGL_video_image implementation, VideoImage texture type translates to its
native texture type in blink layer.

A refactory for this implementation is required but is complicated and need much time.
Currently, we need a workaround in ANGLE to support this extension.

Current end2end tests can monitor this workaround well.

BUG=chromium:776222, angleproject:3889
Change-Id: I864bc2734cfffc8c5aea6166466767e3fb31c1c7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1989864
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-01-13 07:16:07 +00:00
Shahbaz Youssefi c4053a9e86 Vulkan: Reduce the frequency of driver uniform binds
Bind the driver uniforms set only when actually updating them.

Bug: angleproject:4261
Change-Id: Ie1f1ab61eef58c5e0c713d285050c79c4cfccb32
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1986928
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Mohan Maiya <[email protected]>
2020-01-13 06:09:14 +00:00
Shahbaz Youssefi ed074852bf Add a perf test for drawing with alternating programs
The programs have a different shader interface, to force rebinding
descriptor sets in the Vulkan backend.

Bug: angleproject:4261
Change-Id: I7a18a441483dfe34bd40b5a30ca34b7fd0dc3219
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1990085
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-11 21:47:12 +00:00
Shahbaz Youssefi f0be7c81c5 Fix GLSLTest_ES3.MixedRowAndColumnMajorMatrices_ReadSideEffect
The test had two array sizes swapped, causing failure on vendors that
statically verified index-out-of-bound accesses.

Bug: angleproject:3831
Change-Id: I8ec32e9c11b38b69f03b1a22e60dfb6c6e82c2a4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1947123
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-01-11 06:16:12 +00:00
Shahbaz Youssefi 5e33e647d1 Vulkan: Optimize getIndexRange
This function was unconditionally calling finishImpl().  This is changed
to finishToSerial() to only wait until the serial that actually used the
buffer.

Bug: angleproject:3072
Change-Id: Ida89bb119b4ba6420f12404b911af0e3b4583a51
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993407
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-11 06:10:42 +00:00
Shahbaz Youssefi 6b2754066a Vulkan: Workaround vertex attributes vs stride issue on AMD
Under robustBufferAccess, Vulkan states that:

Vertex input attributes are considered out of bounds if the offset of
the attribute in the bound vertex buffer range plus the size of the
attribute is greater than either:

- vertexBufferRangeSize, if bindingStride == 0; or
- (vertexBufferRangeSize - (vertexBufferRangeSize % bindingStride))

The latter implies that if the buffer size is not a multiple of the
vertex attribute stride, what lies beyond the last multiple of stride is
considered out of bounds.

It also says:

Out-of-bounds buffer loads will return any of the following values:

- Values from anywhere within the memory range(s) bound to the buffer
  (possibly including bytes of memory past the end of the buffer, up to
  the end of the bound range).
- Zero values, or (0,0,0,x) vectors for vector reads where x is a valid
  value represented in the type of the vector components and may be any
  of ...

The first bullet point indicates that the driver is allowed to load the
attribute values from the buffer if its range still lies within the
buffer size.

Take the following example:

- Buffer size = 12
- Attribute stride = 8
- Attribute offset = 0
- Attribute size = 4

Basically the buffer is thus laid out as follows:

          attr stride
      _________/\_________
     /                    \
    +----------+----------+----------+
    | vertex 0 | padding  | vertex 1 |
    +----------+----------+----------+
     \___ ____/
         V
     attr size

In the above example, the attribute for vertex 1 is considered out of
bounds, but the driver is allowed to either read it correctly, or return
(0, 0, 0, 1) for it.

Most drivers implement the former, while AMD implements the latter.
This change introduces a workaround for AMD where
GL_MAX_VERTEX_ATTRIB_STRIDE is limited to 2048 (the common value for it
according to gpuinfo.org) and conservatively rounds up every buffer
allocation to that size.

While technically, this workaround should be applied on any device with
the robustBufferAccess feature enabled, it is currently limited to AMD
to avoid the inefficiency.  A possible future revision of Vulkan may
relax the above restrictions.

Bug: angleproject:2848
Change-Id: Ida5ae5d777da10f22ce8be5a09a7644b5bbd778e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1991709
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-01-11 06:07:42 +00:00
Shahbaz Youssefi 8fde115144 Vulkan: fix default uniform descriptor rebind on program change
When the program binding changes, we set the descriptor sets binding
dirty bit if the program had any textures, UBOs, SSBOs, images or atomic
counters.  The check for default uniforms was missing.  So if the two
programs had no resources and were only using default uniforms, then
drawing with one after the other didn't update the descriptor set
binding of the default uniforms for the second draw.

Bug: angleproject:4277
Change-Id: I631a1619658ee713484cfaee99fe1e39987e16e7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993408
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Cody Northrop <[email protected]>
2020-01-11 06:01:12 +00:00
Eric Binet 5aed7c74b7 Narrow point size range clamping to affected versions
Bug: angleproject:2970
Change-Id: Ie14725b0cf30738d394320c24a72bc947135f5cf
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1993204
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-01-11 01:56:01 +00:00