Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-12-06, 04:05 AM   #1
skayen
Registered User
 
Join Date: Apr 2006
Posts: 5
Default GLX Framebuffer config problem

Hello,

I am problems getting framebuffer configs from the NVIDIA 87.56 drivers. I am moving my code from an older (ATI) system where I have successfully used glXChooseFBConfig, and I have tried third party pixelbuffer demos to veryify that they have the same problem.

This example, for instance, returns a NULL cfglist (for either get configs or choose configs)

Code:
  int attr[]={  
    GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT, GLX_RENDER_TYPE,
    GLX_RGBA_BIT, None    
  };

  Display *display=XOpenDisplay(":0.0");
  int screen=DefaultScreen(display);
  int n=-1;

  assert(display);

  //  GLXFBConfig *cfglist=glXChooseFBConfig(display, screen, attr, &n);
  GLXFBConfig *cfglist=glXGetFBConfigs(display, screen, &n);
  assert(cfglist);
I believe this driver is the first driver to support 7600s, but i am tempted to try an older driver to see if it fixes the problem. Is this advisable, do you think? Can anyone suggest something I might try to get this to work?

cheers,
John
skayen is offline   Reply With Quote
Old 04-12-06, 04:33 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default Re: GLX Framebuffer config problem

Check if glxinfo (or nvidia-settings) correctly shows the available fb configurations. If they do there's likely something wrong with your attributes.
Thunderbird is offline   Reply With Quote
Old 04-12-06, 06:47 AM   #3
skayen
Registered User
 
Join Date: Apr 2006
Posts: 5
Default Re: GLX Framebuffer config problem

Hello,

thanks for your reply.

glxinfo does list a whole stack of pixel formats---nothing in glxinfo seems out of the ordinary: it even says it supports frame buffer config.

the problem is, glxinfo uses glXChooseVisual (I believe) to generate its list, rather than glXChooseFBConfig. (I have the source to lxinfo and grepped for glXChooseFB config as my first step of trying to figure out what's going on.) The problem is that I don't think glXChooseVisual understands the flags that request pixelbuffers... but I will need to look into this.

I thought there might be something wrong with my attribute list, but glXGetFBConfigs doesn't need an attr list (see above source), and yet it is still returning NULL.

but thanks again for your reply.

cheers,
John
skayen is offline   Reply With Quote
Old 04-12-06, 09:51 PM   #4
skayen
Registered User
 
Join Date: Apr 2006
Posts: 5
Default Re: GLX Framebuffer config problem

Hello,

ok, it now works, for reasons I don't understand.

What I did was install the nvidia-glx-dev package (which broke my X) and then reinstalled the 8756 drivers. It now all works fine. I am running ubuntu 4.10--it was a clean install on a new system, btw.

cheers,
John
skayen is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
173.14.34 -- Xorg 1.12.1 & 1.11.4, glx module fails to load mereset NVIDIA Linux 17 06-10-12 01:24 AM
Major WineX prob... I think it has to do with the vidcard... Linewbie NVIDIA Linux 20 10-09-02 09:58 PM
Glx mrbig1344 NVIDIA Linux 7 09-30-02 06:45 AM
Problem with GLX(?) Nykolas NVIDIA Linux 4 08-12-02 02:24 PM
Nvidia Go on laptop, black border within XFree86 problem raxip NVIDIA Linux 3 07-31-02 10:58 AM

All times are GMT -5. The time now is 09:38 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.