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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-10-10, 12:52 PM   #1
kwvtk
Registered User
 
Join Date: Oct 2008
Posts: 17
Default 195.36.15: #version 110 is ignored.

Hello,

With the driver shipped with Ubuntu 10.04 or arch (195.36.15), the following fragment shader code compiles when it should not:

#version 110
void main()
{
vec2 location = gl_PointCoord - vec2(0.5, 0.5);
float length = dot(location, location);
if (length < 0.20)
gl_FragColor = gl_Color;
else
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
}

By providing #version 110, we want to force the driver to be compliant with the GLSL specification and to reject anything above version 1.10. Notably gl_PointCoord is defined only in 1.20 and above in a fragment shader.
The point is to be able to develop under Linux (and detect the error under Linux as soon as possible and fix them) and to still have the same behavior as we get on Mac or on Windows.

There are at least 3 machines on which it happens:
The Ubuntu x86 machine is a nVidia GeForce 6800, 256MB. The Ubuntu x86_64 machine is a nVidia Quadro FX 3600M, 512MB. The arch x86_64 machine is an nVidia Quadro FX 580, 512MB.

I can provide more details if you want to.

The nVidia #version logic is describes in this old nVidia document (December 2006).

ref: developer.download.nvidia.com/opengl/glsl/glsl_release_notes.pdf, page 2:

"In addition to these new features, the Release 95 drivers also improve adherence to the
OpenGL specification. Whenever #version 110 or #version 120 is found at the beginning
of a shader, it is compiled such that items formerly flagged as portability warnings are
now marked as errors. This means that some shaders using #version 110 that did not
strictly conform to the OpenGL specification may no longer compile with theses drivers.
Shaders that do not specify #version 110 or #version 120 will continue to compile as
before."


Best regards.

--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
kwvtk is offline   Reply With Quote
Old 05-10-10, 01:28 PM   #2
kwvtk
Registered User
 
Join Date: Oct 2008
Posts: 17
Default Re: 195.36.15: #version 110 is ignored.

Here is the report for the Ubuntu 10.04 x86_64 nVidia Quadro FX 3600M.
Attached Files
File Type: gz nvidia-bug-report.log.gz (44.3 KB, 52 views)
kwvtk is offline   Reply With Quote
Old 05-19-10, 04:29 PM   #3
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: 195.36.15: #version 110 is ignored.

Hi François,

Thanks for bringing this to our attention. We will perform better #version checking in a future version of the NVIDIA driver.
danix 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 08:31 AM.


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