-
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
[Regression (again)] Metal YUV rendering broken on Intel MacOS #10006
Comments
Bisecting (again)... |
It is quite difficult to bisect |
I ran testcamera on an Intel MacBook 2019, running macOS 14.5, and it worked with no issues. Does everything except testcamera work? If so, what are the inputs and outputs to the |
Just to be clear, this is happening if you explicitly use the software renderer and not OpenGL or Metal? |
Yes, tested |
Let me check, one moment |
|
Do you know which of these formats is actually used when you're getting frames from the camera? |
|
The Metal renderer doesn't support this format, so it's something in the fallback code (GetClosestSupportedFormat or something down the line from that in SDL_CreateTextureWithProperties) that's probably blowing up. |
Yeah, I tested with testyuv --uyvy and it worked with the metal renderer, so this needs more investigation. |
I was able to reproduce this. There were two problems. The first is that we were trying to use a YUV shader with an RGB texture, which caused the graphical corruption and occasional crash. The second is that we were using default frame output settings, which converted the YUVY frame to NV12. |
Oh, I think Sylvain mentioned something about how Apple was giving NV12 data when you ask for YUVY data in the original pull request...! Mystery solved! |
yes, indeed something gets fixed. Previous SDL3 version didn't work on macosx for me with an external camera, and now that's ok. |
I was going to report a very similar YUV format issue related to internal webcam capture on MacOS (green tint and double vision), but on the way I encountered this:
It's probably highly related to the resolved issue I reported before: issue
Steps to reproduce: Run
testcamera
on Intel Macbook (2015 in this case). MacOS 12.7.2 (the newest one available for this hardware)The text was updated successfully, but these errors were encountered: