-
Notifications
You must be signed in to change notification settings - Fork 492
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
GL game "Beyond All Reason" window overestimated by glretrace #874
Comments
Could you please provide me:
|
🤦 My monitor isn't big enough to see. |
I see what's going on. The application is using a 691 x 2289 FBO, but it's setting the viewport before it binds the FBO:
From what I've gathered this is a valid usage, ie, viewport is a global state, not FBO state. However it confuses glretrace into thinking that the window should be larger. In short, it's a glretrace bug, annoying yet mostly harmless, and it's unclear what's the most effective way to fix it... |
Do you have idea about any hacky approach to create reasonable trace? The BAR is pretty complex game and would be great for the Mesa3D CI testing. |
@jrfonseca any ideas on a resolution here? |
Sorry, there's no easy solution from Apitrace's side. The fundamental issue is that window size is not explicit in GLX/WGL APIs, instead size is only explicit on X11/GDI APIs which Apitrace does not intercept. So this means that if we want to explicitly record the window size we'd need Apitrace to:
I'd happily accept patches along these lines. That said, if all you want is to add BAR to a CI database, then my suggestion is to ignore this issue, and record the reference screenshots as they are (with blank portion, as seen in #874 (comment)) -- it should still work just fine. If the blank area is annoying when eyeballing rendering, then we could add an option to glretrace to clamp/restrict maximum window size. |
This ticket and my interest here are both unrelated to CI. If you want to give me some breadcrumbs towards your proposed solution I don't mind giving it a shot. I've recently tried getting a new trace from this game, but somehow replay is crashing in the first |
It's probably better to track this in a separate issue report, but looking at that function, I suspect there's work to do to handle the Lines 305 to 315 in 223c85d
Not saying this is definitely what's causing the issue, but it's likely. |
I wasn't intending to raise it as an apitrace issue (yet), just saying why I may not get to the issue in this ticket immediately. |
I'm not entirely sure what's going on here, but I recently was debugging this game and couldn't get apitrace to work.
Some instructions in the issue comments here.
Basically if I inject the apitrace wrapper, it records a trace, and I can play it back without errors, but the window doesn't render anything.
The text was updated successfully, but these errors were encountered: