Summary: | Distant geometry renders in front of closer geometry (depth test fail) in DarkRadiant / wxWidgets | ||
---|---|---|---|
Product: | Mesa | Reporter: | MirceaKitsune <sonichedgehog_hyperblast00> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | sonichedgehog_hyperblast00 |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Screenshot of the depth sorting issue |
Description
MirceaKitsune
2015-10-05 14:16:12 UTC
The cause of the issue has been at last found, thanks to a suggestion by OrbWeaver. It was triggered by initializing the WX OpenGL canvas without any attributes, which caused Mesa to assume no depth buffer at all. I have created a patch for DarkRadiant which makes it usable. I guess the question of this bug report remains whether Mesa is doing something wrong here. On the proprietary video drivers, it's ok to leave the attribs parameter of wxGLCanvas empty... but for depth buffering to work on Mesa, you must include WX_GL_DEPTH_SIZE and give it a buffer size. So if anyone here is familiar with wxWidgets, please take a look at this. If you think Mesa is doing the right thing, this report can be closed. I don't know enough to decide that, but to me it feels like depth testing being the only thing that doesn't work in this scenario denotes a problem. (In reply to MirceaKitsune from comment #1) > I guess the question of this bug report remains whether Mesa is doing > something wrong here. On the proprietary video drivers, it's ok to leave the > attribs parameter of wxGLCanvas empty... but for depth buffering to work on > Mesa, you must include WX_GL_DEPTH_SIZE and give it a buffer size. > > So if anyone here is familiar with wxWidgets, please take a look at this. If > you think Mesa is doing the right thing, this report can be closed. I don't > know enough to decide that, but to me it feels like depth testing being the > only thing that doesn't work in this scenario denotes a problem. I'm not familiar with wxWidgets, but this definitely doesn't sound like a mesa bug. If you don't explicitly request a visual with depth bits, then you may or may not get a depth buffer, and it looks like it just happens some proprietary drivers will give you a visual with it but mesa won't. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.