Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove WGPUAdapterProperties/wgpuAdapterGetProperties #305

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

beaufortfrancois
Copy link
Contributor

@beaufortfrancois beaufortfrancois commented Jun 12, 2024

As raised in #266 (comment), this PR removes WGPUAdapterProperties/wgpuAdapterGetProperties. The new wgpuAdapterGetInfo replaces both wgpuAdapterRequestAdapterInfo and wgpuAdapterGetProperties (that's why we added the vendor/device ID to the struct).

FIX #266

@kainino0x
Copy link
Collaborator

Thanks!

@kainino0x kainino0x merged commit 043af6c into webgpu-native:main Jun 12, 2024
4 checks passed
copybara-service bot pushed a commit to google/dawn that referenced this pull request Jun 14, 2024
Following up on a webgpu.h change[1], this CL adds support for
adapter properties memory heaps, adapter properties D3D,
adapter properties vk, dawn adapter properties power preference,
and compatibility mode to GPUAdapter GetInfo() method so
that Chrome can start the migration[2].
Once done, the GPUAdapter GetProperties() method will be marked
as deprecated and we'll start using only GetInfo() in Dawn.
Finally, we'll remove the GPUAdapter GetProperties() method.

[1]: webgpu-native/webgpu-headers#305
[2]: https://chromium-review.googlesource.com/c/chromium/src/+/5626172

Bug: 335383516
Change-Id: I720581c1c5594d8997dc794e228fe14efb8d20cd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/193461
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
hubot pushed a commit to google/skia that referenced this pull request Jun 17, 2024
This CL makes sure Skia uses GPUAdapter GetInfo() instead of
GetProperties() so that we can start removing GetProperties()
in Dawn following on webgpu.h change[1].

[1]: webgpu-native/webgpu-headers#305

Bug: 335383516
Change-Id: Ifb416c6e8f738fd81b0fb705ff0d19381017c0ef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/866796
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wgpuAdapterGetProperties is sync but requestAdapterInfo is async
2 participants