Samson
4af413cd04
webgpu: Update wgpu to 0.19 ( #31995 )
...
* Update wgpu to 32e70bc163
(0.19)
* Update expect only good
* reexpect
* remove dbg stuff
* Remove all occurrences of dx11_hub
2024-04-26 07:04:15 +00:00
eri
cc082efbfd
clippy: Allow too_many_arguments
for existing functions ( #31974 )
...
* Allow `too_many_arguments` for existing functions
* fix: Surround ASCII with code block in rustdoc
2024-04-02 12:50:45 +00:00
Ekta Siwach
1bc63801e7
fix redundant closures in component/script/dom ( #31917 )
...
* fixed unnecessary conversions
* resolved conflicts
* resolved conflicts
* fix redundant closures in component/script/dom
* resolved conflicts
* fixed formatting
2024-03-28 09:06:02 +00:00
Oluwatobi Sofela
f8a2eaea47
clippy: Fix collapsible_else_if warnings ( #31853 )
2024-03-26 09:15:04 +00:00
Oluwatobi Sofela
3c05b58221
clippy: Fix explicit_auto_deref
warnings in components/script
( #31837 )
...
* clippy: Fix explicit auto-deref warnings
* clippy: Fix explicit auto-deref warnings
* refactor: Tidy up code
* refactor: Fix method not found errors
2024-03-23 11:29:20 +00:00
Oluwatobi Sofela
3e63f8d6ee
clippy: Fix needless borrow warnings ( #31813 )
2024-03-21 17:48:54 +00:00
Oluwatobi Sofela
2789e98876
clippy: Fix redundant field names warnings ( #31793 )
2024-03-20 23:05:29 +00:00
Oluwatobi Sofela
36d9ab8b28
rustdoc: Convert url text to anchor link ( #31755 )
2024-03-19 11:48:09 +00:00
Samson
c25069161d
Add pseudo async Create*PipelineAsync methods ( #31695 )
...
* Create fake CreatePipelineAsync
* Update WebGPU CTS
* Update expectations and disable some webgpu tests
2024-03-19 05:39:42 +00:00
eri
a8170966ec
Move convert_* functions into gpuconvert.rs ( #31521 )
...
* feat: unify convert_* functions across gpu*.rs files #31104
* chore: reorder and format
2024-03-06 16:48:34 +00:00
Taym Haddadi
9be989146d
WebIDL: Use ArrayBuffer
instead of raw JSObject
in bindings ( #31202 )
...
* WebIDL: Use ArrayBuffer instead of raw JSObject in bindings
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Convert GPUBufferMapInfo mapping to Arc<Mutex>
* Remove #[allow(unsafe_code)] from GPUBuffer
* Add doc comments
* Implement trace for Arc<Mutex<Vec<T>>>
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use #[no_trace] for GPUBufferMapInfo.mapping
* Make create_new_external_array_buffer generic
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Address review comments
* Remove HeapTypedArray::new and avoid cloning Arc
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use expect for GetMappedRange and ReadAsArrayBuffer
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use doc comments for FileReaderSyncMethods
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Return for Error::JsFailed GetMappedRange and ReadAsArrayBuffer
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Fix detached_internal implementation and comments
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* format code
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update expectations
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-02-13 07:58:48 +00:00
Martin Robinson
5c1723c983
rustdoc: Fix many rustdoc errors ( #31147 )
...
This fixes many rustdoc errors that occur due to raw URLs in rustdoc
comments as well as unescaped Rust code that should be in backticks.
2024-01-22 13:13:48 +00:00
Samson
e79171ec01
Update WebGPU CTS ( #30954 )
...
* Update WebGPU CTS to ae15a59832
* Add internal to GPUErrorFilter to make more test work
* No crash in CreateRenderBundleEncoder
* getCompilationInfo
* Update expectations
2023-12-28 17:32:21 +00:00
Martin Robinson
7e82c5c957
Compile Servo with the latest version of rust stable ( #30831 )
...
This completes the transition to compiling Servo with rust stable. Some
nightly-only features are still used when compiling the `script` and
`crown` crates, as well as for some style unit tests. These will likely
break with newer compiler versions, but `crown` can be disabled for them
conditionally. This is just the first step.
This has some caveats:
1. We need to disable setting up the special linker on Linux. The -Z
option isn't supported with stable rust so using this is out --
meanwhile we can't be sure that lld is installed on most systems.
2. `cargo fmt` still uses some unstable options, so we need to rely on
the unstable toolchain just for running `fmt`. The idea is to fix this
gradually.
2023-12-06 17:36:07 +00:00
Samson
ddc47aa56b
Codegen support multiple interfaces in single webidl file & WebGPU single webidl ( #30448 )
...
* Codegen support multiple interfaces in single webidl file
* Merge GPU*.webidl into WebGPU.webidl
* Update gpu files to use WebGPUBinding module file
2023-09-30 12:30:12 +00:00
Samson
ebd41d4101
Use Foo_Binding instead of FooBinding for namespace modules ( #30447 )
...
* Update Codegen.py to emit Foo_Binding instead of FooBinding
* s/FooBinding/Foo_Binding/g
2023-09-30 00:52:04 +00:00
Samson
d22d97f8c8
Add GPUSupportedFeatures and update GPUSupportedLimits ( #30359 )
...
* GPUSupportedFeatures
* New supported limits
* Update expectations
2023-09-14 13:23:12 +00:00
Samson
aad2dccc9c
Strict import formatting (grouping and granularity) ( #30325 )
...
* strict imports formatting
* Reformat all imports
2023-09-11 19:16:54 +00:00
Samson
71e0372ac1
Upgrade whole webgpu stack ( #29795 )
...
* 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
2023-08-20 23:16:46 +00:00
Samson
9514f670d1
No tracing of nop traceable fields ( #29926 )
...
* Add `no_trace` option to JSTraceable derive
* NoTrace wrapper
* Port some types to no_trace schematics
* Fixing my unsafe mistakes (not tracing traceables)
* Add docs & safety guards for no_trace
Safety guards (trait shenanigans) guarantees safety usage of `no_trace`
* Port canvas_traits to no_trace
* Port servo_media to no_trace
* Port net_traits to no_trace
* Port style to no_trace
* Port webgpu to no_trace
* Port script_traits to no_trace
* Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace
* unrooted_must_root lint in seperate file
* Add trace_in_no_trace_lint as script_plugin
* Composable types in must_not_have_traceable
* Introduced HashMapTracedValues wrapper
* `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>`
* Port rest of servo's types to no_trace
* Port html5ever, euclid, mime and http to no_trace
* Port remaining externals to no_trace
* Port webxr and Arc<Mutex<_>>
* Fix spelling in notrace doc
2023-08-04 10:17:43 +00:00
Josh Matthews
fca5833e21
Remove global argument from Promise::new_in_current_realm.
2023-05-20 11:05:09 -04:00
Kunal Mohan
3661aa3d8c
Use Device limits and features provided by user
...
Spec update
2020-09-23 11:37:03 +05:30
Kunal Mohan
a68e3920e5
update wgpu
2020-09-22 11:34:27 +05:30
Kunal Mohan
9c3967158a
defer encoding errors to finish()
2020-08-22 17:43:10 +05:30
Kunal Mohan
e1bfc7aa0d
upgrade wgpu to v0.6
2020-08-22 17:42:40 +05:30
Kunal Mohan
f082a507da
Implement GPUPipelineBase for implicit pipeline layouts
2020-08-19 16:44:26 +05:30
Kunal Mohan
8c576bb02b
update wgpu and some cleanup
2020-08-17 13:33:54 +05:30
Kunal Mohan
732efdacbd
update wgpu
2020-08-16 12:35:38 +05:30
Kunal Mohan
7f53339d78
Implement GPUUncapturedErrorEvent
2020-08-11 14:24:58 +05:30
Kunal Mohan
78c9466fdb
fix ErrorScope model
2020-08-07 11:35:50 +05:30
Kunal Mohan
072770dbc0
Register invalid resources separately
2020-08-06 10:48:17 +05:30
Kunal Mohan
ce6e09a3aa
Change ErrorScopeId type to NonZeroU64
...
And extract it from WebGPURequest
2020-08-03 01:45:29 +05:30
Kunal Mohan
8cb5fad828
Report errors from void returning operations
2020-08-01 16:32:37 +05:30
Kunal Mohan
4e38633009
Refactor and improve GPUErrorScopes
...
Remove use of equivalent BGLs
2020-07-30 23:36:58 +05:30
Kunal Mohan
aff22db33f
Implement GPURenderBundleEncoder and GPURenderBundle
2020-07-24 12:45:23 +05:30
Kunal Mohan
75abccb16b
update wgpu, use serializable descriptors
2020-07-22 23:22:13 +05:30
Kunal Mohan
5285c07f1f
Implement GPUCommandEncoder.copy commands
2020-07-21 21:00:23 +05:30
Kunal Mohan
cdc0a75fe4
Update GPUObjectBase webidl and cleanup valid flags
2020-07-20 23:03:53 +05:30
Kunal Mohan
37d606621d
address review comments
2020-07-17 02:23:39 +05:30
Kunal Mohan
d1c13e8df7
Use existing BindGroupLayout if an equivalent BGL already exists
2020-07-16 23:21:09 +05:30
Kunal Mohan
0dc1514d57
Implement Async Error reporting for WebGPU and update wgpu-core
2020-07-16 23:21:09 +05:30
Kunal Mohan
fae66089fa
Implement GPUQueue.writeBuffer and GPUQueue.writeTexture
2020-07-04 21:49:32 +05:30
Kunal Mohan
891a3bd30e
Encapsulate buffer map fields in a separate struct
2020-07-01 23:58:55 +05:30
Kunal Mohan
575036bb88
Implement GPUBuffer.getMappedRange()
2020-07-01 20:37:17 +05:30
Kunal Mohan
db2d313a1b
Fix ArrayBuffer creation in buffer mapping
2020-06-27 21:32:18 +05:30
Kunal Mohan
ef3b141406
address review comments
2020-06-27 20:27:18 +05:30
Kunal Mohan
b74cea3a46
Implement GPUBuffer.mapAsync and update wgpu-core
2020-06-27 20:27:17 +05:30
Kunal Mohan
f973099020
Remove validation for GPUBindGroup, GPUBindGroupLayout, GPUPipelineLayout
2020-06-19 21:35:30 +05:30
Kunal Mohan
48ef306bd3
Update wgpu-core and wgpu-types
2020-06-19 11:12:50 +05:30
Kunal Mohan
00b3f785c4
Add GPUSampler and GPUTextureView to BindingResource
...
Add validation for BindGroups
2020-06-17 12:45:40 +05:30