aboutsummaryrefslogtreecommitdiffstats
path: root/components/webgpu/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* webgpu: Move errorscopes to WGPU thread (#32304)Samson2024-05-221-5/+4
| | | | | | | | | | | | | | | | | | | | | * Prepare errorscopes logic in wgpu_thread * remove scope_id from ipc * new GPUErrors per spec * remove cotent timeline error_scope * fixup poperrorscope types * device_scope -> gpu_error and nice errors * Handle errors detection more elegantly * good expectations * new expectations * Make error_scope.errors Vec as per spec
* webgpu: Use WGPU poller thread for poll_all_devices (#32266)Samson2024-05-151-1/+2
| | | | | | | | | | | * Use special WGPU poller thread for poll_all_devices * Switch to latest wgpu This is required to fix some deadlocks. * non-blocking poll unconditionally * small fixes
* webgpu: Refactor webgpu crate (#32255)Samson2024-05-081-1341/+16
| | | | | | | * wgpu(_core) -> wgc * Refactor webgpu crate split lib.rs into multiple modules
* webgpu: Update to wgpu 0.20 (#32173)Samson2024-05-081-7/+33
| | | | | | | | | | | * Update wgpu to 0.20 * good expectations * Throw TypeError in configure on unsupported format instead of panic * Expect * `into_command_buffer_id`,`into_command_encoder_id`
* webgpu: Use safe callbacks & try_recv_timeout (#32008)Samson2024-04-301-164/+95
| | | | | | | | | | | | | * Use safe callback in SwapChainPresent and remove present_buffer_maps * Use rust closure in BufferMapAsync * Remove buffer_maps and dead code elimination * scope id passthrough * Inline callbacks * try_recv timeout and halve DEVICE_POLL_INTERVAL
* webgpu: Update wgpu to 0.19 (#31995)Samson2024-04-261-71/+196
| | | | | | | | | | | * Update wgpu to https://github.com/gfx-rs/wgpu/commit/32e70bc1635905c508d408eb1cf22b2aa062ffe1 (0.19) * Update expect only good * reexpect * remove dbg stuff * Remove all occurrences of dx11_hub
* webgpu: Implement onSubmittedWorkDone (#31772)Samson2024-04-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | * Implement onSubmittedWorkDone * Use rust closures for callback & actually remove entries from hashmap. * Remove hashmap * Fix warnings * Update expectations * clean flaky crashes * re * Update components/script/dom/gpuqueue.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* clippy: Fix assorted warnings in `components/` (#31628)eri2024-03-131-3/+9
| | | | | | | * clippy: fix assorted warnings in `components/` * fix: new and default * fix: review comments
* clippy: fix warnings in various modules in components (#31568)eri2024-03-081-11/+3
| | | | | | | | | * clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
* Fix failed request for adapter when not available (#31002)Taym Haddadi2024-01-091-13/+13
| | | Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* WebGPU: always send exit message to script before exiting (#30989)Gregory Terzian2024-01-031-6/+6
| | | | | | | | | * webgpu: always send exit message to script before exiting * Update expectations --------- Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update wgpu to 0.18.1 (#30926)Samson2023-12-251-0/+1
| | | | | | | * Update wgpu to 0.18.1 * Fix webgpu code * tidy
* Add GPUSupportedFeatures and update GPUSupportedLimits (#30359)Samson2023-09-141-0/+5
| | | | | | | * GPUSupportedFeatures * New supported limits * Update expectations
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-27/+24
| | | | | * strict imports formatting * Reformat all imports
* Upgrade WebRender to e491e1ae637b2eed1e7195855d88357e5eb3ddf9 (#30323)Martin Robinson2023-09-101-4/+2
| | | | | | | | | | | | | | | | | | * Upgrade vendored version of WebRender * Patch WebRender: upgrade version of gleam * Restore hit testing implementation * Fix WebRender warnings * Adapt Servo to new WebRender * Update results * Add a workaround for #30313 This slightly expands text boundaries in order to take into account the fact that layout isn't measuring glyph boundaries.
* remove `extern crate` (#30311)Samson2023-09-081-5/+4
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Update wgpu to 0.17 (#30147)Samson2023-08-211-3/+3
|
* Upgrade whole webgpu stack (#29795)Samson2023-08-201-169/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow noidl files in script/dom/webidls * Upgrade wgpu to 0.16 and refresh whole webgpu implementation * Update WebGPU test expectations * misc * MutNullableDom -> DomRefCell<Option<Dom for GPUTexture * Direct use of GPUTextureDescriptor * Remove config from GPUCanvasContext * misc * finally blue color * gpubuffer "handle" error * GPU object have non-null label * gpu limits and info * use buffer_size * fix warnings * Cleanup * device destroy * fallback adapter * mach update-webgpu write webgpu commit hash in file * Mising deps in CI for webgpu tests * Updated expectations * Fixups * early reject * DomRefCell<Option<Dom -> MutNullableDom for GPUTexture
* Try to `use` WebRender types moreMartin Robinson2023-07-101-18/+22
| | | | | The newer versions of WebRender move types around between `webrender` and `webrender_api` and this will reduce the churn during the upgrade.
* fixup! Update arrayvec.Josh Matthews2022-04-011-2/+4
|
* Update arrayvec.Josh Matthews2022-04-011-6/+6
|
* Use Device limits and features provided by userKunal Mohan2020-09-231-2/+2
| | | | Spec update
* prevent unconditional cloning of resultsKunal Mohan2020-08-271-9/+9
|
* Prevent redundant texture and buffer destroy callsKunal Mohan2020-08-251-7/+5
|
* fix presentation beltKunal Mohan2020-08-231-6/+9
|
* defer encoding errors to finish()Kunal Mohan2020-08-221-26/+34
|
* upgrade wgpu to v0.6Kunal Mohan2020-08-221-0/+2
|
* Implement GPUPipelineBase for implicit pipeline layoutsKunal Mohan2020-08-191-4/+45
|
* update wgpuKunal Mohan2020-08-161-70/+26
|
* Remove entries from error_command_buffers on dropKunal Mohan2020-08-081-0/+4
|
* Record errors in GPUCommandEncoder.BeginPass() and EncoderPass.endPass()Kunal Mohan2020-08-071-17/+43
|
* Register invalid resources separatelyKunal Mohan2020-08-061-51/+115
|
* update wgpuKunal Mohan2020-08-061-11/+10
|
* Change ErrorScopeId type to NonZeroU64Kunal Mohan2020-08-031-58/+12
| | | | And extract it from WebGPURequest
* Record validation error in mapAsync()Kunal Mohan2020-08-021-1/+6
|
* Error handling for promise returning operationsKunal Mohan2020-08-021-15/+31
|
* Report errors from void returning operationsKunal Mohan2020-08-011-11/+55
|
* Refactor and improve GPUErrorScopesKunal Mohan2020-07-301-31/+60
| | | | Remove use of equivalent BGLs
* Implement GPURenderBundleEncoder and GPURenderBundleKunal Mohan2020-07-241-14/+46
|
* update wgpu, use serializable descriptorsKunal Mohan2020-07-221-149/+29
|
* Implement GPUCommandEncoder.copy commandsKunal Mohan2020-07-211-0/+60
|
* Update GPUObjectBase webidl and cleanup valid flagsKunal Mohan2020-07-201-18/+60
|
* Ensure GPUDevice cleanup in GlobalScopeKunal Mohan2020-07-171-0/+12
|
* address review commentsKunal Mohan2020-07-171-97/+29
|
* Implement Async Error reporting for WebGPU and update wgpu-coreKunal Mohan2020-07-161-48/+152
|
* Auto merge of #27180 - kunalmohan:segfault, r=kvarkbors-servo2020-07-061-36/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove segfaults in WebGPU threads <!-- Please describe your changes on the following line: --> I have also increased the number of staging buffers for presentation. Segfault occurred at 2 places- 1. RenderPipeline descriptor. 2. BufferMapAsync callback. 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * Remove segfaults in WebGPU threadsKunal Mohan2020-07-071-36/+41
| |
* | Implement GPUQueue.writeBuffer and GPUQueue.writeTextureKunal Mohan2020-07-041-0/+43
| |
* | Update wgpu-core and wgpu-typesKunal Mohan2020-07-041-1/+1
|/
* WebGPU update presentation data asynchronouslyKunal Mohan2020-07-031-62/+138
|