servo/components
bors-servo 53467b80b9
Auto merge of #27536 - kunalmohan:update-wgpu, r=kvark
Major fixes in error reporting in GPUCommandEncoder and ErrorScope Model

<!-- Please describe your changes on the following line: -->
1. Update wgpu to use the error model on wgpu-core side. Register error Ids separately.
2. ~~Record errors only in `GPUCommandEncoder.finish()`. Errors are no longer recorded in ErrorScopes in transfer commands or while recording passes. Any errors that occur are stored on the server-side in `error_command_encoders: HashMap<id::CommandEncoderId, String>` and reported on `CommandEncoderFinish`. Note: This should be reverted when the spec gets updated.~~
3. Correct a major flaw in ErrorScope Model. If multiple operations are issued inside scope and an early operation fails, the promise resolves and script execution continues. The scope, however, was not popped until the results of all its operations were received. This meant that if the user issues another operation, it was assumed to be issued in an error scope that has already been popped by the user, which led to the failure of a number of tests. This is solved by storing a `popped` boolean to check whether `popErrorScope()` has been called on a scope or not. Operation is now issued in the lastest scope for which `popped == false`.

One of the tests used to crash, but it no longer does (All subtests under it fail now). That explains the large number of failing test expectations that have been added. Most of them fail due to the tests being outdated. I'll switch to the updated branch in the next PR.

r?@kvark

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-08-07 15:38:17 -04:00
..
allocator
atoms Add a sessionavailable event that allows content to enter an XR session without a user gesture 2020-07-10 14:09:18 -05:00
background_hang_monitor improve reliability of hang monitor tests 2020-07-07 12:45:14 +08:00
bluetooth
bluetooth_traits
canvas webgl: Support preserveDrawingBuffer. 2020-08-06 14:25:17 -04:00
canvas_traits
compositing Revert "Update webrender." 2020-08-04 19:15:52 -04:00
config Introduce shell.crash_reporter.enabled pref 2020-08-03 17:31:34 +02:00
config_plugins
constellation Change ErrorScopeId type to NonZeroU64 2020-08-03 01:45:29 +05:30
debugger
deny_public_fields
derive_common
devtools devtools: Track multiple clients better, and cleanup streams when a client isn't reachable. 2020-08-06 09:55:01 -04:00
devtools_traits Console.Clear implemented 2020-07-29 22:19:18 +05:30
dom_struct
domobject_derive
embedder_traits
fallible
geometry
gfx Revert "Update raqote, font-kit, fontconfig." 2020-08-04 19:16:19 -04:00
gfx_traits
hashglobe
jstraceable_derive
layout Revert "Update harfbuzz, freetype, unicode-script." 2020-08-04 19:16:13 -04:00
layout_2020 Revert "Update harfbuzz, freetype, unicode-script." 2020-08-04 19:16:13 -04:00
layout_thread
layout_thread_2020
layout_traits
malloc_size_of Change ErrorScopeId type to NonZeroU64 2020-08-03 01:45:29 +05:30
media
metrics
msg
net Make reload button clear the network cache. 2020-07-27 22:34:07 -04:00
net_traits Make reload button clear the network cache. 2020-07-27 22:34:07 -04:00
pixels
profile
profile_traits
rand
range
remutex
script Auto merge of #27536 - kunalmohan:update-wgpu, r=kvark 2020-08-07 15:38:17 -04:00
script_layout_interface
script_plugins Update to 7/27 nightly rustc. 2020-07-27 12:56:57 -04:00
script_traits Fix ordering of mousemove event 2020-07-30 16:34:29 +05:30
selectors
servo Pipe GST_DEBUG output to its own log file on UWP. 2020-08-07 10:28:54 -04:00
servo_arc
size_of_test
std_test_override
style Auto merge of #26447 - jdm:white-space-2020, r=nox 2020-07-29 10:29:30 -04:00
style_derive
style_traits
to_shmem
to_shmem_derive
url
webdriver_server
webgpu Record errors in GPUCommandEncoder.BeginPass() and EncoderPass.endPass() 2020-08-07 22:36:05 +05:30
webrender_surfman webgl: Support preserveDrawingBuffer. 2020-08-06 14:25:17 -04:00
webrender_traits