webgpu: Add the latest spec compliant GPUAdapterInfo#39960
webgpu: Add the latest spec compliant GPUAdapterInfo#39960sagudev merged 1 commit intoservo:mainfrom
Conversation
|
🔨 Triggering try run (#18595050360) for Linux (Production, WPT) |
|
Test results for linux-wpt from try job (#18595050360): Flaky unexpected result (23)
Stable unexpected results (3)
|
|
|
This is known flake, but let's wait for #39962 then rebase this PR. |
21ac67f to
a38c329
Compare
|
@sagudev < FYI, after CTS update were found few more tests for GPUAdapterInfo, and some of them are linked with 'GPUAdapter.info + GPUDevice.adapterInfo', so I decided to combine all possible changes together in one PR and align it with the latest specification state. |
|
🔨 Triggering try run (#18677499764) for Linux (Production, WPT) |
| // adapter as reported by the driver. To preserve privacy, the user agent may instead set | ||
| // adapterInfo.description to the empty string or a reasonable approximation of a | ||
| // description. | ||
| let description = DOMString::from_string(info.name.clone()); |
There was a problem hiding this comment.
I changed info.driver_info to info.name because it has more detailed information about adapter.
DEFAULT ADAPTER:
name: "Intel(R) Graphics (RPL-S)", vendor: 32902, device: 42880, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.3", backend: Vulkan
FORCED FALLBACK ADAPTER:
name: "llvmpipe (LLVM 15.0.7, 256 bits)", vendor: 65541, device: 0, device_type: Cpu, driver: "llvmpipe", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.3 (LLVM 15.0.7)", backend: Vulkan
There was a problem hiding this comment.
We should also report wgpu backend here to make it more useful, so you would get Intel(R) Graphics (RPL-S) via Vulkan backend, but we can do that in follow up.
|
Test results for linux-wpt from try job (#18677499764): Flaky unexpected result (6)
Stable unexpected results (6)
|
|
|
a38c329 to
2d38075
Compare
|
|
🔨 Triggering try run (#18683095573) for Linux (Production, WPT) |
|
Test results for linux-wpt from try job (#18683095573): Flaky unexpected result (6)
Stable unexpected results (2)
|
|
|
According to the WebGPU specification there are some missing readonly attributes (subgroupMinSize, subgroupMaxSize, isFallbackAdapter) for GPUAdapterInfo IDL interface. See https://gpuweb.github.io/gpuweb/#gpuadapterinfo Added the new readonly attributes: - GPUAdapter 'info' attribute https://gpuweb.github.io/gpuweb/#dom-gpuadapter-info - GPUDevice 'adapterInfo' attribute https://gpuweb.github.io/gpuweb/#dom-gpudevice-adapterinfo Removed marked as the deprecated the following method and attribute from GPUAdapter interface: - 'requestAdapterInfo' method - 'isFallbackAdapter' attribute Testing: Improvements in WebGPU CTS expectations - webgpu:api,operation,adapter,info:adapter_info:* - webgpu:api,operation,adapter,info:device_matches_adapter:* - webgpu:api,operation,adapter,info:same_object:* - webgpu:api,operation,adapter,info:subgroup_sizes:* - webgpu:api,operation,adapter,requestAdapter:requestAdapter:* Signed-off-by: Andrei Volykhin <[email protected]>
2d38075 to
ed88de9
Compare
|
I rebased to pick up #40058 which fixes CI. |
According to the WebGPU specification there are some missing readonly attributes (subgroupMinSize, subgroupMaxSize, isFallbackAdapter) for GPUAdapterInfo IDL interface.
See https://gpuweb.github.io/gpuweb/#gpuadapterinfo
Added the new readonly attributes:
https://gpuweb.github.io/gpuweb/#dom-gpuadapter-info
https://gpuweb.github.io/gpuweb/#dom-gpudevice-adapterinfo
Removed marked as the deprecated the following method and attribute from GPUAdapter interface:
Testing: Improvements in WebGPU CTS expectations