Bug 107687 - [wine] Brink compatible pixel format not found
Summary: [wine] Brink compatible pixel format not found
Status: RESOLVED DUPLICATE of bug 97516
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: 18.2
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-25 20:01 UTC by Sven Arvidsson
Modified: 2018-09-01 18:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
wine log with +wgl (5.32 MB, text/x-log)
2018-08-25 20:01 UTC, Sven Arvidsson
Details
brink apitrace (846.16 KB, application/octet-stream)
2018-09-01 17:51 UTC, Sven Arvidsson
Details

Description Sven Arvidsson 2018-08-25 20:01:00 UTC
Created attachment 141278 [details]
wine log with +wgl

The game Brink (running with Steam Proton/Wine) fails to start with the following error:

wglChoosePixelFormatARB failed to find a suitable format.
Resetting r_multiSamples to allow rendering context to be created.
wglChoosePixelFormatARB failed to find a suitable format.

The error from Wine is:
0029:warn:wgl:X11DRV_wglChoosePixelFormatARB Compatible Pixel Format not found

a full log from Wine with +wgl is attached.

This is an old idTech 4 game requiring a compatibility context. I haven't tried it before, but it does have a platinum rating in Wine.

The game is available free of charge on Steam.

There was a previous issue with pixel formats that was resolved. I'm not sure if this is a similar problem. See bug #47478 and
https://bugs.winehq.org/show_bug.cgi?id=26763

Using 18.2.0~rc4 on TONGA.
Comment 1 Sven Arvidsson 2018-08-26 19:14:12 UTC
Doom 3: BFG seems to have a similar problem (starts up to a white screen):

0009:warn:wgl:X11DRV_wglGetPixelFormatAttribivARB Unable to convert iPixelFormat 0 to a GLX one!
0009:warn:wgl:X11DRV_wglChoosePixelFormatARB Compatible Pixel Format not found
Comment 2 Sven Arvidsson 2018-09-01 17:51:27 UTC
Created attachment 141408 [details]
brink apitrace
Comment 3 Sven Arvidsson 2018-09-01 17:59:16 UTC
glXChooseFBConfig(dpy = 0x7dce1f80, screen = 0, attribList = {GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_ALPHA_SIZE, 8, GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, 8, GLX_SWAP_METHOD_OML, 32865, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, 1, GLX_DOUBLEBUFFER, True, GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT, GLX_RENDER_TYPE, GLX_RGBA_BIT | GLX_COLOR_INDEX_BIT | 0xfffffffffffffffc, 0}, nitems = &0) = NULL

From the apitrace it looks like Wine passes 32865 (0x8061)for GLX_SWAP_METHOD_OML  to glXChooseFBConfig, what I can tell from the specs only 0x8060 is allowed as a parameter to GLX_SWAP_METHOD_OML.

If someone can confirm this I will file a new bug with Wine.
Comment 4 Sven Arvidsson 2018-09-01 18:21:30 UTC
(In reply to Sven Arvidsson from comment #3)
> From the apitrace it looks like Wine passes 32865 (0x8061)for
> GLX_SWAP_METHOD_OML  to glXChooseFBConfig, what I can tell from the specs
> only 0x8060 is allowed as a parameter to GLX_SWAP_METHOD_OML.
> 
> If someone can confirm this I will file a new bug with Wine.

I'm an idiot. 

Anyhow, recreating the call to 	glXChooseFBConfig in a sample program with the swap method set to GLX_SWAP_EXCHANGE_OML/0x8061 doesn't return a fbconfig.
Comment 5 Sven Arvidsson 2018-09-01 18:22:58 UTC

*** This bug has been marked as a duplicate of bug 97516 ***


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.