Summary: | gallium/wgl: Allow context creation without prior SetPixelFormat() | ||
---|---|---|---|
Product: | Mesa | Reporter: | frank.richter |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | ||
Version: | 17.1 | ||
Hardware: | Other | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Patch: Allow context creation without prior SetPixelFormat() |
Description
frank.richter
2017-06-07 09:21:27 UTC
I may not have time to look at this for a few days. But one question: did you find this because a particular app is working differently with Mesa than NVIDIA/AMD/Intel? I guess I'd like to hear more background info about this. I'm trying to coerce a Chromium-based browser component to render WebGL using an llvmpipe Mesa. At one point during initialization, it creates a short-lived context just to obtain some function addresses. It wants to create a context on the display DC, which apparently has no pixel format set - or at least a 'framebuffer' can't be determined. If that early context creation fails desktop GL, if requested, won't be used and features requiring it disabled. FWIW, Chrome makes use of NVIDIA's desktop GL when forced to do so, presumably that particular context creation succeeds there. Thanks for the info. The patch looks good. I'll push it soon with minor reformatting. Patch 0ef39e588f92236f9e2fb1909a314c7eb70db8c2 pushed. Thanks, Frank. |
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.