mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
25da12ca2d
Adapt `wgpu_server_queue_submit` to the new submission index type. Use corrected spelling `WGPUTextureFormat_Rg11b10UFloat`. Assign queue ids explicitly, rather than deriving them from device ids: - `wgpu_bindings::client::IdentityHub`: add an `IdentityManager` for queues. Initialize it in `IdentityHub::default`. - `dom::webgpu::DeviceRequest`: hold separate `mDeviceId` and `mQueueId` members. - `wgpu_client_make_device_id`: rename to `wgpu_client_make_device_queue_id`, and have it allocate both a device id and a queue id. - `PWebGPU` protocol's `AdapterRequestDevice` request: explicitly pass an id for the new queue. - `WebGPUChild::AdapterRequestDevice`: pass through the queue id from `wgpu_client_make_device_queue_id` through to `SendAdapterRequestDevice`, and also return it as `DeviceRequest::mQueueId`. - `WebGPUParent::RecvAdapterRequestDevice`: accept a queue id, and pass it along to `ffi::wgpu_server_adapter_request_device`. - `wgpu_server_adapter_request_device`: take a new argument specifying the new queue's id, and pass that along to `global.adapter_request_device`. - `dom::webgpu::Adapter::RequestDevice`: given the `DeviceRequest` returned by `WebGPUChild::AdapterRequestDevice`, pass the ids for both the new device and the new queue to `dom::webgpu::Device::Device`. - Let `dom::webgpu::Device::Device` take a new argument explicitly specifying the device's queue's id. Differential Revision: https://phabricator.services.mozilla.com/D219356 |
||
---|---|---|
.. | ||
audits.toml | ||
config.toml | ||
imports.lock | ||
moz.build |