-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Emscripten_UpdateWindowFramebuffer fails if pixel data is higher than 2gb in address space #9052
Comments
Yes, please send a PR when you get a chance; this feels like something I'll get wrong if I try to do it myself. :) |
Trying to understand the issue
|
Sorry I meant to write |
If this is not in performance critical code you could just use a divide by 4 operation in all cases and keep the code simple. |
Just coming back to this, do we just need that one |
Any place |
We are scoping work for the SDL 3.2.0 release, so please let us know if this is a showstopper for you. |
This would be a showstopper for supporting memory64 AKA wasm64. It looks like there are 3 places that would need updating:
Should I send a RP for this? If so could it also be backported to the SDL2 branch (which emscritpen uses)? |
Yes please. :) We can backport it, that's fine. |
I'm surprised there are only three places we need this fix. |
I'll do a more thorough search. I can also very that all the emscripten-side tests pass under wasm64 after making the change. |
This includes both wasm64 and wasm32 when addressing more than 2gb of memory. Fixes: libsdl-org#9052
This includes both wasm64 and wasm32 when addressing more than 2gb of memory. Fixes: libsdl-org#9052
This includes both wasm64 and wasm32 when addressing more than 2gb of memory. Fixes: libsdl-org#9052
This includes both wasm64 and wasm32 when addressing more than 2gb of memory. Fixes: #9052
FYI, the fix for this is in the latest SDL2 release: |
Thanks: emscripten-core/emscripten#22830 |
This includes both wasm64 and wasm32 when addressing more than 2gb of memory. Fixes: libsdl-org#9052 (Manually cherry-picked from 3deb07e.)
Specifically the line
var src = pixels >> 2
needs updating.It should probably be:
(I can work look into uploading a PR for this)
The text was updated successfully, but these errors were encountered: