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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-25-11, 05:01 AM   #1
bgt_victor
Registered User
 
Join Date: Nov 2011
Posts: 3
Default OpenGL 4.2 support

Hello,

I'm on Ubuntu 11.10 x86-64 with GT540M.
I can't create an OpenGL 4.2 context. But I can create an OpenGL 4.1 context and use it very fine!

I've got this problem with nvidia drivers 285.05.09 and 290.10.
I'm not alone, see this post on Nvidia forum.

Errors are:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 135 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 27
Current serial number in output stream: 28


But if I run glxinfo, I've got :
- OpenGL vendor string: NVIDIA Corporation
- OpenGL renderer string: GeForce GT 540M/PCI/SSE2
- OpenGL version string: 4.2.0 NVIDIA 290.10
- OpenGL shading language version string: 4.20 NVIDIA via Cg compiler


I don't use glew and freeglut but a test program who just create an OpenGL >= 4.1 context.
The file main.cpp is attached with my post, compile with "g++ main.cpp -o test -lGL -lX11" and run with "./test".
This suppose you have got libx11-dev on your computer.

Just change line 124 : GLX_CONTEXT_MINOR_VERSION_ARB from 1 to 2 and you will see the problem!

I have send my nvidia-bug-report.log too!

Thanks in advance!

P.S. Sorry for my english I'm french.
Attached Files
File Type: gz nvidia-bug-report.log.gz (43.8 KB, 28 views)
File Type: gz main.cpp.tar.gz (1.6 KB, 41 views)
bgt_victor is offline   Reply With Quote
Old 11-27-11, 06:36 AM   #2
bgt_victor
Registered User
 
Join Date: Nov 2011
Posts: 3
Default Re: OpenGL 4.2 support

No ideas?

Do you think my problem is in my program or in Nvidia drivers?
bgt_victor is offline   Reply With Quote
Old 11-28-11, 01:27 AM   #3
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: OpenGL 4.2 support

This is a known issue that we'll try to get fixed soon. I think you can work around the problem simply by creating an unversioned "compatibility profile" context, but I'll have to check tomorrow.
AaronP is offline   Reply With Quote
Old 11-28-11, 02:10 AM   #4
bgt_victor
Registered User
 
Join Date: Nov 2011
Posts: 3
Default Re: OpenGL 4.2 support

Quote:
Originally Posted by AaronP View Post
This is a known issue that we'll try to get fixed soon. I think you can work around the problem simply by creating an unversioned "compatibility profile" context, but I'll have to check tomorrow.
A very good new , and I've got some informations for you: I've got an error with unversioned "compatibility profile" context, but nothing with unversioned context. See below :



Code:
int context_attribs[] =
{
    None
};
ctx = glXCreateContextAttribsARB( display, bestFbc, 0, True, context_attribs );
The result is very good : glGetString(GL_VERSION) return "4.2.0 NVIDIA 290.10"



But on the next test
Code:
int context_attribs[] =
{
    GLX_CONTEXT_FLAGS_ARB,    GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
    None
};
ctx = glXCreateContextAttribsARB( display, bestFbc, 0, True, context_attribs );
Here I've got this error:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 135 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 27
Current serial number in output stream: 28
bgt_victor 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


All times are GMT -5. The time now is 11:14 AM.


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