[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    [Bug 147177] New: kde4 kwin composite feature does work with Xgl on
From:       anton <benderamp () gmail ! com>
Date:       2007-06-24 20:13:15
Message-ID: 20070624221313.147177.benderamp () gmail ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=147177         
           Summary: kde4 kwin composite feature does work with Xgl on ATI
                    proprietary driver
           Product: kwin
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kwin kde org
        ReportedBy: benderamp gmail com


Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) default gcc on \
                openSuSe 10.2
OS:                Linux

Hello,

I have ATI card x1900xt with proprietary ATI driver running on opensuse 10.2.

I have kde4 recent svn version (the lats one was dated June 22) compiled and running. \
I'm trying to run kwin with composite opengl extensions enabled above Xgl xserver. \
Compiz is running just fine with my configuration.

If I add UseTransluency=true option to kwinrc file, kwin crashes during startup = \
with this option =false works fine but without compositing.

I have navigated in source files, inserted some debug flag messages with "cout" and \
found the problem place. It is in scene_opengl.cpp file in the constructor:

SceneOpenGL::SceneOpenGL( Workspace* ws )
    : Scene( ws )
    , init_ok( false )
    {
.....
if( !initRenderingContext()) {
        return; // error
}
...
}

here initRenderingContext() method returns false and the constructor does go further.

Inside the initRenderingContext() method the problem is here:
bool SceneOpenGL::initRenderingContext() {
...

if( ctxbuffer == NULL || !glXMakeContextCurrent( display(), glxbuffer, glxbuffer, \
ctxbuffer )  || errs.error( true ))
        {
...

}

the glXMakeContextCurrent(..) returns false here; all parameters - display(), \
glxbuffer and ctxbuffer - are not nulls here. Since this moment I can't analyze \
things anymore as it goes to the area of drivers and some inner opengl stuff I'm not \
rather familiar with.

The other important note here is that with the kde4 svn version about 2 month old I \
could run compositing effects with kwin on the same configuration with the same \
videocard driver. For that I just had to comment out one "assert false" row and the \
other row above with the "if' statement in the scene_opengl.cpp in the constructor \
which prevented it to run further. With this modified sources compiled I could see \
some effects in action. The current sources do not contain this rows.

I would be glad if kwin composite extensions could work with Xgl with proprietary ATI \
drivers, I can provide additional debug info, can apply patches and recompile the \
sources and test the things out - all that can be helpful to make it work. \
_______________________________________________ Kwin mailing list
Kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic