Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XGL and NVIDIA
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 13, 14, 15  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
MisterHH
n00b
n00b


Joined: 12 Jan 2004
Posts: 15

PostPosted: Sat Feb 11, 2006 1:29 pm    Post subject: Reply with quote

utpark wrote:
I resolve the problem of Black Windows.

# eselect opengl list
[1] nvidia *
[2] opengl
[3] xorg-x11

# eselect opengl set 3

# emerge compiz

# eselect opengl set 1


Doesn't solve the problem for me, but this way, I don't have to specify LD_LIBRARY_PATH=/... each time I want to try to start compiz ;-)
Back to top
View user's profile Send private message
wintersommer
n00b
n00b


Joined: 28 May 2004
Posts: 33

PostPosted: Sat Feb 11, 2006 2:57 pm    Post subject: Reply with quote

sorry did as you stated above , rebuild compiz , but still black windows

GF4MX

greets
Back to top
View user's profile Send private message
DeeZiD
n00b
n00b


Joined: 18 Jun 2005
Posts: 34

PostPosted: Sat Feb 11, 2006 4:00 pm    Post subject: Reply with quote

Very strange:

A new FX5200 I bought for my oldest pc even had the same problem.
Black windows!

Only newer cards doesn't have this problem.
Hope their will be any patch.


regards Dennis
Back to top
View user's profile Send private message
joolz
n00b
n00b


Joined: 29 Oct 2004
Posts: 72
Location: sweden

PostPosted: Sat Feb 11, 2006 4:40 pm    Post subject: Reply with quote

i have an old geforce3 ti200. no problems here
Back to top
View user's profile Send private message
Thrain
Guru
Guru


Joined: 01 Sep 2003
Posts: 380

PostPosted: Sat Feb 11, 2006 4:43 pm    Post subject: Reply with quote

I'm nearly sure that the problem is with stencil buffers.
For some reason mesa doesn't implement stencil buffers with old nvidia cards :\

In fact, at the start of glxcompmgr/compiz output you will get a message reguarding stencil buffers, and their absence could cause problems.

I hope this will be useful.
_________________
Thrain

"...only astonishment knows..."
Back to top
View user's profile Send private message
ikke
Apprentice
Apprentice


Joined: 14 Jan 2005
Posts: 225
Location: Belgium

PostPosted: Sat Feb 11, 2006 4:44 pm    Post subject: Reply with quote

I only get that stencil buffers warning when running at 1400x1050(16bpp), not when I run 1024x768(24bpp), but at the lower resolution, same issue as at the high one...
_________________
Working day and night to enhance your Linux Desktop experience :)
Blog
Back to top
View user's profile Send private message
ikke
Apprentice
Apprentice


Joined: 14 Jan 2005
Posts: 225
Location: Belgium

PostPosted: Sat Feb 11, 2006 5:24 pm    Post subject: Reply with quote

http://lists.freedesktop.org/archives/xorg/2006-January/012271.html is exactly this problem (also in-code). Too bad there's no usable follow-up :(
_________________
Working day and night to enhance your Linux Desktop experience :)
Blog
Back to top
View user's profile Send private message
smcallis182
Apprentice
Apprentice


Joined: 04 Apr 2004
Posts: 197
Location: Kansas City

PostPosted: Sat Feb 11, 2006 5:29 pm    Post subject: Reply with quote

I managed to get everything compiled (and I even recompiled with pijalu's new overlay), and I can get xgl up and running, but when I try to load glxcompmgr (even with no plugins specified), my desktop just freezes, I can't move windows, gklrellm stops updating, but it's NOT frozen, I can bring it back if I ctrl-c the glxcompmgr process. When I run compiz --replace gconf, I get the GL_EXT not found...... crap. I've tried recompiling and I'm specifying LD_LIBRARY_PATH, and I am out of ideas. Anyone have suggestions? I'm running an nvidia FX5200 for the record.
Back to top
View user's profile Send private message
irondog
l33t
l33t


Joined: 07 Jul 2003
Posts: 715
Location: Voor mijn TV. Achter mijn pc.

PostPosted: Sat Feb 11, 2006 6:55 pm    Post subject: Re: XGL and NVIDIA Reply with quote

sque wrote:
The problem is NVIDIA driver does not support GLX_EXT_texture_from_pixmap and the only patch that exists is for Mesa and from a few things i have read and heard Nvidia closed drivers conflicts with mesa's opengl.
(maybe I should read more :oops: )
:?: What in earth does that mean? :?:

Something like this??:
Xgl is a normal openGL program which is hardware accelerated when using the glx implementation provided by nvidia. Compiz is also an openGL program. It currently needs functions that aren't implemented by the nvidia drivers. At the moment Compiz only runs when using a hacked software based openGL implementation called MESA. The hacked MESA does provide the needed functions, but it can't provide hw acceleration as MESA is software based.
_________________
Alle dingen moeten onzin zijn.
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Sat Feb 11, 2006 8:16 pm    Post subject: Reply with quote

I've got xgl/compiz working on ~amd64 +nvidia 8)

One thing that makes compiz explode is wobbly so I just don't use it atm.

Spinns/flips and all thta cool stuff :wink:

I'll make a video in the next day or so.
Back to top
View user's profile Send private message
ikke
Apprentice
Apprentice


Joined: 14 Jan 2005
Posts: 225
Location: Belgium

PostPosted: Sat Feb 11, 2006 8:19 pm    Post subject: Reply with quote

After some further investigation, it looks like it wont be possible to run this on a Geforce2 based card (for now). One needs pixel shaders, and afaik those are only available starting from geforce3...

Not completely sure yet though
_________________
Working day and night to enhance your Linux Desktop experience :)
Blog
Back to top
View user's profile Send private message
midnite420
n00b
n00b


Joined: 07 Sep 2004
Posts: 16

PostPosted: Sat Feb 11, 2006 9:28 pm    Post subject: Reply with quote

cybrjackle wrote:
I've got xgl/compiz working on ~amd64 +nvidia 8)

One thing that makes compiz explode is wobbly so I just don't use it atm.

Spinns/flips and all thta cool stuff :wink:

I'll make a video in the next day or so.


What video card you use?
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Sat Feb 11, 2006 11:19 pm    Post subject: Reply with quote

6800GT
Back to top
View user's profile Send private message
stealth_gsx1300r
n00b
n00b


Joined: 30 Dec 2003
Posts: 24
Location: Southern MD

PostPosted: Sun Feb 12, 2006 1:19 am    Post subject: Still not there yet... Reply with quote

I have an athlon64 processor and seem to have the prerequisites installed, but when I run gnome-window-decorator, I get nothing...
Back to top
View user's profile Send private message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Sun Feb 12, 2006 2:07 am    Post subject: Reply with quote

cybrjackle wrote:
I've got xgl/compiz working on ~amd64 +nvidia 8)

One thing that makes compiz explode is wobbly so I just don't use it atm.

Spinns/flips and all thta cool stuff :wink:

I'll make a video in the next day or so.

Sweet, I've got similar hardware and wobbly makes me blow up too. Everything else works perfectly!
Back to top
View user's profile Send private message
Drag0n
n00b
n00b


Joined: 05 Mar 2004
Posts: 73

PostPosted: Sun Feb 12, 2006 2:07 pm    Post subject: Reply with quote

Hi,

I have the problem with the black windows, too. I've been hacking compiz all night but got nowhere. I know pretty much where the problem is, though, I think.

I'll just keep trying.

Cheers,
Drag0n
_________________
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook
Back to top
View user's profile Send private message
Drag0n
n00b
n00b


Joined: 05 Mar 2004
Posts: 73

PostPosted: Sun Feb 12, 2006 5:35 pm    Post subject: Reply with quote

A little update: Well, haven't got any further yet... ;)

On the mesa mailing list, thread "GLX_EXT_texture_from_pixmap", I learn that as of February 6, nVidia is working on implementing that extension. But I, of course, don't know whether it'll be in the next release or not. Let's hope for it! :)

Cheers,
Drag0n
_________________
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook
Back to top
View user's profile Send private message
DeeZiD
n00b
n00b


Joined: 18 Jun 2005
Posts: 34

PostPosted: Sun Feb 12, 2006 5:39 pm    Post subject: Reply with quote

Drag0n wrote:
A little update: Well, haven't got any further yet... ;)

On the mesa mailing list, thread "GLX_EXT_texture_from_pixmap", I learn that as of February 6, nVidia is working on implementing that extension. But I, of course, don't know whether it'll be in the next release or not. Let's hope for it! :)

Cheers,
Drag0n


Hope they will release their new driver soon.
Xgl should be much faster then when doing an emerge :)


regards Dennis
Back to top
View user's profile Send private message
rob2687
n00b
n00b


Joined: 05 Feb 2006
Posts: 27

PostPosted: Sun Feb 12, 2006 5:40 pm    Post subject: Reply with quote

This GLX_EXT_texture_from_pixmap is kinda wacky.

If I do the LD_LIBRARY_PATH and point it to the CVS Mesa/lib path it will work on and off. Most of the time it will give me that error but if I keep entering the command it eventually starts compiz successfully. O_o
Back to top
View user's profile Send private message
DeeZiD
n00b
n00b


Joined: 18 Jun 2005
Posts: 34

PostPosted: Sun Feb 12, 2006 5:51 pm    Post subject: Reply with quote

My Pc works nearly perfect with compiz and Xgl.

I had to modify my kdmrc (it works with gdm too, just search the forum)
And I had to make a script which starts compiz and gnome-window-decorator and put it into .kde/autostart


It's so nice :)
Back to top
View user's profile Send private message
maxcow
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 126

PostPosted: Mon Feb 13, 2006 3:09 pm    Post subject: Reply with quote

A recap of what we know about the black windows problem:

This problem was already raised in the xorg mailing list[1], but with no solution.

To expand a bit on that message, here's the snippet of code that is run by compiz:

From compiz/src/texture.c +218
Code:
case GLX_TEXTURE_2D_EXT:
   texture->target = GL_TEXTURE_2D;
   texture->matrix.xx = 1.0f / width;
   texture->matrix.yy = -1.0f / height;
   texture->matrix.y0 = 1.0f;
   break;
case GLX_TEXTURE_RECTANGLE_EXT:
   texture->target = GL_TEXTURE_RECTANGLE_ARB;
   texture->matrix.xx = 1.0f;
   texture->matrix.yy = -1.0f;
   texture->matrix.y0 = height;
   break;
case GLX_NO_TEXTURE_EXT:
   fprintf (stderr, "%s: pixmap 0x%x can't be bound to texture\n", programName, (int) pixmap);

The error messages showed when compiz is run indicate that GLX_NO_TEXTURE_EXT is returned by queryDrawable (which is just a call to glXQueryDrawable).

I tried to make the code ignore the queryDrawable value and force the code path through either of the cases, but still I got black windows.

From reading issue 4 of the proposed GLX_EXT_texture_from_pixmap extension[2] and noting that GL_ARB_texture_non_power_of_two is not present in glxinfo, but GL_ARB_texture_rectangle is, then I conclude that the second case is the one that applies to my card (Geforce4 MX).

Maybe this code path is less tested and those coordinates are wrong? I tried to read the GL_TEXTURE_RECTANGLE_ARB spec[3] but couldn't understand any of it :)

So, the problems are:
  • This happens in old nvidia cards
  • glXQueryDrawable returns GLX_NO_TEXTURE_EXT when it shouldn't
  • using GL_TEXTURE_RECTANGLE_ARB should work, but doesn't.
Could anybody post some of this info on the nVidia Linux forum thread[4]? I tried to register but I couldn't because of the email restrictions they impose.

[1] http://lists.freedesktop.org/archives/xorg/2006-January/012271.html
[2] http://www.freedesktop.org/~davidr/GLX_EXT_texture_from_pixmap.txt
[3] http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_rectangle.txt
[4] http://www.nvnews.net/vbulletin/showthread.php?t=64822
Back to top
View user's profile Send private message
pijulius
n00b
n00b


Joined: 13 Feb 2006
Posts: 7

PostPosted: Mon Feb 13, 2006 3:57 pm    Post subject: Black Windows Reply with quote

Hi maxcow,

I have the same problem with my Geforce4 420 Go, everything else is working and it's very faaast, even the cube, so the only things remaining are the black windows. I hope it gets fixed very soon because I'm so in love with this XGL that I started using them, even if they are all black :D

Cheers,
Julius
Back to top
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Mon Feb 13, 2006 6:00 pm    Post subject: Reply with quote

do you really need gcc 4.0.2 to get this thing working? I'm getting the following error compiling cairo under 3.4.4


Code:

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -I. -I../pixman/src -I../src -I../src -I/usr/include/libpng12       -I/usr/include/freetype2    -Wall -Wpointer-arith -Wstrict-prototypes     -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing   -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo   -O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -MT pdf2png-pdf2png.o -MD -MP -MF ".deps/pdf2png-pdf2png.Tpo" -c -o pdf2png-pdf2png.o `test -f 'pdf2png.c' || echo './'`pdf2png.c; \
then mv -f ".deps/pdf2png-pdf2png.Tpo" ".deps/pdf2png-pdf2png.Po"; else rm -f ".deps/pdf2png-pdf2png.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer   -o pdf2png  pdf2png-pdf2png.o libcairotest.la ../src/libcairo.la   -lglitz-glx -lX11 -lGL -lpthread -lglitz -lm    -lpthread -lpoppler-glib -lpoppler -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lm
libtool: link: cannot find the library `/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/libstdc++.la' or unhandled argument `/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/libstdc++.la'
make[2]: *** [pdf2png] Error 1
make[2]: Leaving directory `/var/tmp/portage/cairo-1.1.1_alpha20060115/work/cairo/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cairo-1.1.1_alpha20060115/work/cairo'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-1.1.1_alpha20060115 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! Compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Back to top
View user's profile Send private message
wintersommer
n00b
n00b


Joined: 28 May 2004
Posts: 33

PostPosted: Mon Feb 13, 2006 6:02 pm    Post subject: Reply with quote

what compiler have you set? try :

gcc-config -l

*and*

eselect compiler list
Back to top
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Mon Feb 13, 2006 6:05 pm    Post subject: Reply with quote

as i mentioned I'm using 3.4.4 (i686-pc-linux-gnu-3.4.4-vanilla) what I want to know is do i really need 4.0.2 (as it seems to be asking for that version of the gcc libs)......
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4 ... 13, 14, 15  Next
Page 3 of 15

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum