Bug 19430 - Humus DepthOfField2 demo: No matching FBConfig
Summary: Humus DepthOfField2 demo: No matching FBConfig
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL: http://www.humus.name/index.php?page=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 14:30 UTC by Sven Arvidsson
Modified: 2011-03-01 15:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
backtrace (8.63 KB, text/plain)
2010-04-25 10:40 UTC, Sven Arvidsson
Details

Description Sven Arvidsson 2009-01-06 14:30:21 UTC
Trying to run the demo DepthOfField2, all I get is this error message:

 No matching FBConfig 

http://www.humus.name/index.php?page=3D&ID=56

I'm using git master, commit a8ee35c1c59c23938e0a18b163515acc892ed407.

I guess this is because of bug 3868, but filing this bug just to be sure.
Comment 1 Adam Jackson 2009-08-24 12:31:35 UTC
Mass version move, cvs -> git
Comment 2 Jerome Glisse 2009-08-28 04:23:15 UTC
What GPU ? Does it still happen with recent checkout ?
Comment 3 Sven Arvidsson 2009-08-28 05:33:48 UTC
I'm using an Intel G45, but I get the same error when using the software rasterizer. 

This is still a problem with Mesa git as of a few days ago.

System environment:
-- chipset: G45 / ICH10R
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- Machine or mobo model: Asus P5Q-EM
-- Display connector: DVI
-- KMS: enabled
-- xf86-video-intel: 6361c3b9af39265df9222b1f3b6fb9c4197087c1
-- xserver: 1.6.3
-- mesa: 72052210516b4cb0e082e0c56822cd33b1562630
-- drm: d74c67fb13d8c3e8c2e5968d827285d147a5dfc0
-- kernel: 2.6.31-rc6 (debian)
Comment 4 Sven Arvidsson 2010-04-24 14:09:26 UTC
(Answering myself here)

The "No matching FBConfig" comes from the application, not Mesa. It seems it's asking for GLX_PBUFFER_BIT and pbuffers isn't that well supported?

For reference, this is the whole list of visuals asked for:

        int attList[] = {
                GLX_BIND_TO_TEXTURE_RGBA_ATI, True,
                GLX_RENDER_TYPE,   isFloatFormat(texture.format)? GLX_RGBA_FLOAT_ATI_BIT : GLX_RGBA_BIT,
                GLX_X_RENDERABLE,  True,
        	GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT,
                GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR,
                GLX_CONFIG_CAVEAT, GLX_NONE,
                GLX_RED_SIZE,      bpc,
                GLX_GREEN_SIZE,    (nCh > 1)? bpc : 0,
                GLX_BLUE_SIZE,     (nCh > 2)? bpc : 0,
                GLX_ALPHA_SIZE,    (nCh > 3)? bpc : 0,
                GLX_DEPTH_SIZE,    24,
                GLX_STENCIL_SIZE,  0,
                GLX_DOUBLEBUFFER,  False,
                None
        };
Comment 5 Sven Arvidsson 2010-04-25 10:40:26 UTC
Created attachment 35279 [details]
backtrace

With the Xserver patched for pbuffer support, I can run the Windows version of the demo. The Linux version no longer complains about missing fbconfigs but segfaults instead.

This is the line which is causing the problem:

 glXBindTexImageATI(display, (GLXPbuffer) textures[textureID].renderTargetData[0], GLX_FRONT_LEFT_ATI);

Full backtrace is attached.
Comment 6 Marek Olšák 2011-03-01 15:09:25 UTC
It segfaults because Mesa doesn't implement GLX_ATI_render_texture and the demo doesn't check for the extension and just uses it. Closing as it's not our bug.


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.