-
Notifications
You must be signed in to change notification settings - Fork 501
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
sg_make_image crash when Xcode Metal API Validation enabled #905
Comments
info added for macbook pro 19
|
Hmm, ok. That code is relatively recent, looks like I ignored this little tidbit that StorageModeShared textures are not allowed on Intel GPUs: https://developer.apple.com/documentation/metal/mtlstoragemode/mtlstoragemodeshared#discussion Since it looks like that by default Metal does the right thing, I will just remove the explicit storage mode selection again. Thanks for the bug report! |
PS: for a quick workaround you can set the |
PPS: after dusting off my old Intel Mac with Big Sur and Xcode 12 I actually have a couple of more problems (sokol_gfx.h doesn't build because some declarations from more recents SDKs aren't properly conditionally compiled. I'll see if I can get this stuff to work later today. |
Intel Macs (GPU Family Mac1 and Mac2) now always use managed storage mode.
Ok, this should be fixed in #907, basically Intel Macs now use managed storage mode for all resource types (that's the same as it worked before I tried to be clever). On Apple GPUs (and generally on iOS) shared resource storage mode is used. I'll merge this in a couple of hours. |
Cool, thanks very much! |
PS: I tested this on my mid-2014 13" MBP with Big Sur and Xcode 12, my M1 MBP, and the iOS simulator. |
Crash occurs on macbook pro 19 only when Xcode Metal API Validation enabled.
But macbook pro 21(with M1 Chip) is ok.
The text was updated successfully, but these errors were encountered: