Commit Graph
11520 Commits
Author SHA1 Message Date
Alexis Hetu 94de306d8b Extensions suffixes
Added NV/OES suffixes to relevant Extensions members.

Bug: angleproject:3104
Change-Id: Ia1798157086230bde8d11c6fcb4fe93211e996ab
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2013168
Reviewed-by: Alexis Hétu <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2020-01-22 13:24:28 +00:00
angle-autoroll ed94ccdde3 Roll third_party/SwiftShader 11cb891a01a2..b766e5e7fbf4 (1 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/11cb891a01a2..b766e5e7fbf4

git log 11cb891a01a2..b766e5e7fbf4 --date=short --first-parent --format='%ad %ae %s'
2020-01-21 [email protected] Support more 10_10_10_2 formats as vertex attributes

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

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: I9f15f55b5079de0a236d5c0d135297b6d9cb94a4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2013986
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-22 10:51:55 +00:00
angle-autoroll 1eb0ddb4d0 Roll third_party/spirv-tools/src 323a81fc5e30..ab7ac60f14ae (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git/+log/323a81fc5e30..ab7ac60f14ae


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

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: Ib432214f5dad6afcecc6afbd7645641d3832f29f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2013985
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-22 08:50:15 +00:00
Ethan Lee 8c396a9cc4 Ignore vulkan-loader dependency for GGP
Bug: angleproject:4254
Change-Id: If551d96941bc4aa487514ba3d8f793dcf45131e9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1982785
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2020-01-21 20:57:12 +00:00
Shahbaz Youssefi 13205b935d Vulkan: Cleanup device feature query and enabling
All device extension features and properties queries are now performed
in a single call for each (i.e. one for features, one for properties),
with all the extension structs chained.  Then based on which feature is
present (not just whether the extension is supported), the extensions
and features are enabled.

In the process, it fixes the following issues:

- If VK_EXT_vertex_attribute_divisor is present, but the necessary
vertexAttributeInstanceRateDivisor feature is not supported, that
feature is not enabled and the emulation path is taken.  Incidentally,
this also fixes an issue with renderdoc that refuses to replay captures
on such devices.
- If VK_EXT_transform_feedback is present, but the necessary
transformFeedback feature is not supported, similarly that feature is
not enabled and the emulation path is taken.

Bug: angleproject:4306
Bug: angleproject:4027
Change-Id: I0969064cba811d215c37dfe551b0ceedb334051c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2005111
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Tobin Ehlis <[email protected]>
2020-01-21 19:42:03 +00:00
angle-autoroll 3b2780e621 Roll third_party/vulkan-loader/src 2d6f74c6d431..af8c7e040f93 (11 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Loader.git/+log/2d6f74c6d431..af8c7e040f93

git log 2d6f74c6d431..af8c7e040f93 --date=short --first-parent --format='%ad %ae %s'
2020-01-16 [email protected] Fix GN build
2020-01-15 [email protected] build: Header update for 1.2.131
2020-01-15 [email protected] scripts: Tweak extension detection
2020-01-15 [email protected] scripts: Add support for Vulkan 1.2 codegen
2020-01-15 [email protected] loader: Add support for Vulkan 1.2
2020-01-13 [email protected] loader: Remove loader_platform_basename dead code
2019-12-12 [email protected] loader: Add custom terminator to tool properties
2019-12-12 [email protected] build: Fix Vulkan registry detection
2019-12-11 [email protected] codegen: Fix crash in tooling info terminator
2019-12-10 [email protected] build: Update for 1.1.130 header version
2019-12-06 [email protected] Fix a bug found by clang's -Wsizeof-array-div.

Created with:
  gclient setdep -r third_party/vulkan-loader/src@af8c7e040f93

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

Bug: chromium:1002945
Tbr: [email protected],[email protected]
Change-Id: I45694ab38a99a7743ff19151ad8f1ab9376c3051
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2012822
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: angle-autoroll <[email protected]>
2020-01-21 17:29:52 +00:00
Ian Elliott 7f8b6e3fab Vulkan: Add support for GL_IMAGE_FORMAT_COMPATIBILITY_TYPE
For some reason, this wasn't implemented when texture image load and
store was implemented.

Bug: angleproject:4311
Change-Id: I24c508660ad7eb3aa944601175803751b54ce0ff
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2011324
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2020-01-21 16:07:02 +00:00
angle-autoroll 8075d3edde Roll third_party/vulkan-validation-layers/src 41a96d15fd99..ac02c61ffc63 (16 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/41a96d15fd99..ac02c61ffc63

git log 41a96d15fd99..ac02c61ffc63 --date=short --first-parent --format='%ad %ae %s'
2020-01-20 [email protected] corechecks: Plumb api names through renderpass validation
2020-01-20 [email protected] layers: Pass api names to error messages
2020-01-20 [email protected] build: Update glslang to 1.2 version
2020-01-20 [email protected] Add validation layer support for Vulkan 1.2 feature/prop structs
2020-01-20 [email protected] tests: Add tests for promoted extensions
2020-01-20 [email protected] layers: Account for Vulkan12Features enablement
2020-01-20 [email protected] layers: Update state tracker for v1.2
2020-01-20 [email protected] layers: Update validation for v1.2
2020-01-20 [email protected] layers: Make DeviceCreateInfo pNext copy more clear
2020-01-20 [email protected] layers: Generator changes for 1.2
2020-01-20 [email protected] layers: Update copyrights for 1.2 changes
2020-01-20 [email protected] build: Header update for Vulkan 1.2
2020-01-20 [email protected] layers: Drop suffixes for modified VUIDs
2020-01-20 [email protected] layers: Drop suffixes for new core identifiers
2020-01-20 [email protected] scripts: Tweak extension detection
2020-01-20 [email protected] tests: Fixed checking format against VK_IMAGE_USAGE

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

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: Iedfbc1b2f369e2d67092488b3d411d6e6a9eb90f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2010059
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-21 08:44:31 +00:00
Ian Elliott 845a09b824 Vulkan: glDeleteTexture unbind all image texture units
The old code only unbound one image unit when a texture was deleted.
The GLES specification is clear that the texture should be unbound from
all units:

  If a texture object bound to one or more image units is deleted by
  DeleteTextures, it is detached from each such image unit, as though
  BindImageTexture were called with unit identifying the image unit and
  texture set to zero.

Bug: angleproject:4310
Change-Id: I24c508660ad7eb3aa944601175803751b54ce0dc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2011322
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Ian Elliott <[email protected]>
2020-01-20 23:44:40 +00:00
Jamie Madill 62475e95da Allow tests to pick ANGLE features.
This uses the EGL_ANGLE_feature_control extension through the test
harness to control feature selection via a test config. This obviates
the need for the hacky platform methods table override.

Also adds a command graph feature that will be used to prototype the
command graph linearization for Vulkan.

Bug: angleproject:4029
Change-Id: Id37fadd5d2c317c9d9dd90dfab1fdc8e4ac3701f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2007612
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Jonah Ryan-Davis <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
2020-01-20 21:45:20 +00:00
angle-autoroll 0c10c9522a Roll third_party/vulkan-tools/src b6ac1e60cd3a..ca9b61a4455f (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools.git/+log/b6ac1e60cd3a..ca9b61a4455f

git log b6ac1e60cd3a..ca9b61a4455f --date=short --first-parent --format='%ad %ae %s'
2020-01-17 [email protected] vulkaninfo: update readme for Windows SDK name change

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

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: Iceccc533d628ebde94bd3a358a9dcd4d42c048ba
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2010491
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-20 08:04:11 +00:00
angle-autoroll 0aba975494 Roll third_party/SwiftShader 2cb1db08e5f1..11cb891a01a2 (4 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/2cb1db08e5f1..11cb891a01a2

git log 2cb1db08e5f1..11cb891a01a2 --date=short --first-parent --format='%ad %ae %s'
2020-01-18 [email protected] Rename multiSampledBresenham to enableMultiSampling
2020-01-18 [email protected] Take advantage of return value optimization
2020-01-17 [email protected] Enable filtering of YCbCr formats
2020-01-17 [email protected] Rename createBlend4 to createShuffle4

Created with:
  gclient setdep -r third_party/SwiftShader@11cb891a01

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: I73bb1cd83295792565ba95f6bf8f43cb21984cc5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2010492
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-20 08:03:10 +00:00
Jamie Madill 579c59400f Vulkan: Rename onGraphAccess to onResourceAccess.
Clarifies the function for the upcoming command graph linearization.

Bug: angleproject:4029
Change-Id: Ib50997c007053757de533f69c155a92d7555e0b2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003235
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-01-18 04:16:27 +00:00
Jamie Madill 09a2d0656c Vulkan: Clean up naming of ResourceUse checks.
Instead of referring to command graphs we can refer to if the resource
is in use by "ANGLE" or the "Driver". This will make the methods more
consistent when we switch away from the command graph.

Bug: angleproject:4029
Change-Id: I3045a4eb2a38234ef331c0662694656065590ae1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2003234
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Tim Van Patten <[email protected]>
2020-01-17 22:41:17 +00:00
Shahbaz Youssefi 3cbeaba4eb Remove suppression of passing test
Fixed in
https://chromium-review.googlesource.com/c/angle/angle/+/2006813, but
suppression was not removed.

Bug: angleproject:4309
Change-Id: I430501c0d977a8c5999390f2ad895290e2301dc5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2008129
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-01-17 18:02:15 +00:00
Ian Elliott 33a2c43d95 Sort GLES 3.1 expectations to show conformance blockers
Sorted by group (i.e. blocking conformance, desktop, general Vulkan, Android).

Bug: angleproject:3520
Change-Id: I6f7c702460b3d1908838796d88e5448d4f83b242
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006018
Commit-Queue: Ian Elliott <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
2020-01-17 16:46:34 +00:00
Shahbaz Youssefi 4efa82edac Vulkan: Avoid INT_MAX resource limits
dEQP queries resource limits in all formats, including float.  When
INT_MAX is queried as float, the resulting value is INT_MAX+1 due to
floating point imprecision.  dEQP casts this value back to int for
verification, and trips up on the resulting negative number.

This change limits every ridiculously-large limit to INT_MAX/2 instead
of INT_MAX.

Bug: angleproject:4309
Change-Id: I11018c2c5a0c8bfb410928b0a4c34c526fab2269
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006813
Commit-Queue: Ian Elliott <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Ian Elliott <[email protected]>
2020-01-17 16:02:13 +00:00
angle-autoroll b46e6c2fa6 Roll third_party/SwiftShader 5fc197dc7669..2cb1db08e5f1 (2 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/5fc197dc7669..2cb1db08e5f1

git log 5fc197dc7669..2cb1db08e5f1 --date=short --first-parent --format='%ad %ae %s'
2020-01-17 [email protected] SpirvShaderDebugger: Implement OpenCL.Debug.100
2020-01-16 [email protected] Remove the GL_NV_read_depth_stencil extension

Created with:
  gclient setdep -r third_party/SwiftShader@2cb1db08e5

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: Ia3eec3b9c7cfc377451b8aa284f836fedbaa2c07
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006716
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-17 09:59:09 +00:00
angle-autoroll dcdf0162dc Roll third_party/vulkan-validation-layers/src ab883b9d257e..41a96d15fd99 (5 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers.git/+log/ab883b9d257e..41a96d15fd99

git log ab883b9d257e..41a96d15fd99 --date=short --first-parent --format='%ad %ae %s'
2020-01-16 [email protected] tests: Add test for VUID 02531
2020-01-16 [email protected] corechecks: Add val for FBCreateInfo non-zero viewmasks
2020-01-16 [email protected] Fix GN build
2020-01-16 [email protected] tests: Added 01589/01590 to InvalidMemoryRequirements
2020-01-16 [email protected] layers: Added support for VUID 01589/01590

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

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: Ic57a869b6b1a7578728900088d9f327674de49cd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006717
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-17 09:41:49 +00:00
angle-autoroll 762179c8da Roll third_party/vulkan-tools/src 4792a6854238..b6ac1e60cd3a (3 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools.git/+log/4792a6854238..b6ac1e60cd3a

git log 4792a6854238..b6ac1e60cd3a --date=short --first-parent --format='%ad %ae %s'
2020-01-16 [email protected] build: Update glslang commit ID in known_good.json
2020-01-16 [email protected] vulkaninfo: Support VK_EXT_tooling_info
2020-01-16 [email protected] Fix GN build

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

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: Id8b2bc19aabe281c5319ce3c080687d6570413d1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006715
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-17 09:40:29 +00:00
angle-autoroll ce9f521465 Roll third_party/glslang/src 3ed344dd784e..b0ada80356ca (1 commits)
https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang/+log/3ed344dd784e..b0ada80356ca


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

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: Id3affd6b1da4d58e350221c044dcb4172efaf4a0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006719
Reviewed-by: angle-autoroll <[email protected]>
Commit-Queue: angle-autoroll <[email protected]>
2020-01-17 08:45:49 +00:00
Shahbaz Youssefi 5860f84a9a Vulkan: Narrow KHR-GLES31 image failures
Bug: angleproject:4309
Bug: angleproject:4310
Bug: angleproject:4311
Bug: angleproject:4312
Bug: angleproject:4313
Bug: angleproject:4314
Bug: angleproject:4315
Bug: angleproject:4316
Change-Id: Ibda4eac6a49ad7a8fcf0ec68b6dd199a3f66ebb0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2006812
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: Shahbaz Youssefi <[email protected]>
2020-01-17 06:37:07 +00:00
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