-
Notifications
You must be signed in to change notification settings - Fork 131
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
(OpenGL) Bios renders only a black screen #315
Comments
Does the content render normally after the BIOS? What about if you take a screenshot during the BIOS boot (try with both GPU screenshot on and off)? Do you see any video in the screenshot then? |
Content did seem to render before making this issue, but I must of been testing something wrong since it doesn't render now either. Taking screenshots with GPU screenshot on or off just shows a black screen. |
No improvement with the llvmpipe or with a fresh config, but apitrace reveals lots of issues... http://ks392457.kimsufi.com/orbea/stuff/trace/retroarch_beetle_psx_blackscreen.trace.xz |
Its getting worse for no known reason...now it just crashes. Log - https://pastebin.com/fucUctse |
Clearing the mesa shader cache files resolved the crash and now its back to a black screen.... |
tried with GL_DEBUG and/or ASAN? |
Not yet, its a change in mesa that caused this. I will bisect sometime today. |
First bad commit.
https://github.com/mesa3d/mesa/commit/a0c8b49284efe736849c0a45920ad0a1bbd8d93d |
My understanding is that there might be something in beetle-psx or maybe libretro making assumptions about GL versions which are no longer correct after that commit. |
This can be worked around by exporting For example.
or
|
This also fixes it.
I think libretro-common probably shouldn't request a An excerpt from #nouveau which was kind enough to help debug this.
|
This seems to be really a mesa + libretro-common bug. As far as libretro-common goes, it probably should not be hardcoded to retroarch --verbose
|
How would you know what the highest available is? |
I'm not sure yet, maybe I am misunderstanding the logs and its reporting the minimum available version and not the given context? |
I know dolphin-emu reports that I have OpenGL 4.5 exposed correctly, maybe their code could offer clues? |
@Themaister - Mind taking a quick peek? Noveau devs suggest that requesting a core context in addition to specifying a 3.1 version number is an error. |
In the original rust code I request a CORE 3.3 context, I'm not sure why or when the requirement got lowered in beetle. |
@rz5 I missed you on irc so I will reply here. My understanding is that there are two issues here.
This is a result of there being a lot of confusion with 3.1 contexts and any application that wants a real core profile should request at least 3.2. This is also a general mesa issue and not just nouveau. I confirmed already that it already occurs with the llvmpipe too, it would be helpful if anyone that has either mesa and amd or intel could also test this with the mesa git master. |
@twinaphex - Based on @simias's observation about the Rustation GL renderer being 3.3, then I propose we bump glsm.c's request up to at least match it since it's what beetle-psx's GL renderer is based on. This should be done at least after more info on this bug is found. |
There isn't a 3.1 core profile context and requesting one is wrong. Recent mesa commits have revealed this as wrong and causes problems for beetle-psx. A 3.3 OpenGL context is what beetle-psx originally requested, but at some point this was lowered. Fixes libretro#315
I've created a PR to raise it to 3.3 again. I'm not there is much more to discuss as far as beetle-psx is concerned. |
Description
With OpenGL the bios now renders as only black. Software is unaffected and I am not able to testing vulkan. Sound still works.
Expected behavior
The bios should render.
Actual behavior
The bios renders as a black screen with sound.
Steps to reproduce the bug
Bisect Results
Previously unaffected beetle-psx-libretro commits either do not work at all anymore or also show this issue. Older RetroArch releases also seem affected. I will try checking other programs next like mesa.
Version/Commit
1.7.1
Environment information
Slackware64-current
gcc-7.3.0
The text was updated successfully, but these errors were encountered: