Skip to content

Conversation

@jspanchu
Copy link
Contributor

@jspanchu jspanchu commented Nov 6, 2024

This ports https://dawn-review.googlesource.com/c/dawn/+/214094

It fixes adapter.requestDevice for wasm64 by using the correct value to calculate the end of the view in HEAPU32 from requiredFeaturesPtr. Earlier, the returned array was twice the actual size.

@jspanchu
Copy link
Contributor Author

jspanchu commented Nov 6, 2024

@lokokung

@jspanchu jspanchu changed the title Use 32-bit pointer size for making heap view of requiredFeatures webgpu: Use 32-bit pointer size for making heap view of requiredFeatures Nov 6, 2024
Copy link
Contributor

@lokokung lokokung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sbc100
Copy link
Collaborator

sbc100 commented Nov 6, 2024

Should the title be "Use 32-bit element size" rather then "Use 32-bit pointer size"?

@jspanchu jspanchu changed the title webgpu: Use 32-bit pointer size for making heap view of requiredFeatures webgpu: Use 32-bit element size for making heap view of requiredFeatures Nov 6, 2024
- This commit fixes adapter.requestDevice for wasm64 by using the
  correct factor to calculate the end of the view in HEAPU32 from
  requiredFeaturesPtr. Earlier, the returned array was twice the
  actual size.
@jspanchu
Copy link
Contributor Author

jspanchu commented Nov 6, 2024

Yes! updated PR title and commit message.

@sbc100 sbc100 changed the title webgpu: Use 32-bit element size for making heap view of requiredFeatures [webgpu] Use 32-bit element size for making heap view of requiredFeatures Nov 6, 2024
@sbc100 sbc100 changed the title [webgpu] Use 32-bit element size for making heap view of requiredFeatures [WebGPU] Use 32-bit element size for making heap view of requiredFeatures Nov 6, 2024
@sbc100 sbc100 changed the title [WebGPU] Use 32-bit element size for making heap view of requiredFeatures WebGPU: Use 32-bit element size for making heap view of requiredFeatures Nov 6, 2024
@sbc100 sbc100 merged commit 01f89dc into emscripten-core:main Nov 6, 2024
9 of 13 checks passed
@jspanchu
Copy link
Contributor Author

jspanchu commented Nov 6, 2024

@sbc100 Thanks! will this make it to 3.1.72?

@sbc100
Copy link
Collaborator

sbc100 commented Nov 6, 2024

Yup. Or you can try it sooner (in a few hours) using emsdk install tot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants