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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-10-08, 06:04 PM   #1
kwvtk
Registered User
 
Join Date: Oct 2008
Posts: 17
Default 177.80: Bug in GLSL built-in functions all() , greaterThanEqual(), lessThanEqual()

Hello,

The following GLSL code leads to some infinite loop on a nVidia Quadro FX 3600m with 177.80 and
works fine with a GeForce6 with driver 169.12.

Code:
vec3 pos;
uniform vec3 lowBounds;
uniform vec3 highBounds;

vec3 rayDirection;

[...]

bool inside=true;
while(inside)
{
[...]
pos=pos+rayDirection;
t+=1.0;

 inside=t<tMax && all(greaterThanEqual(pos,lowBounds))
       && all(lessThanEqual(pos,highBounds));
 }
replacing
Code:
all(greaterThanEqual(pos,lowBounds)) && all(lessThanEqual(pos,highBounds))
by
Code:
pos.x>=lowBounds.x && pos.y>=lowBounds.y && pos.z>=lowBounds.z &&
 pos.x<=highBounds.x && pos.y<=highBounds.y && pos.z<=highBounds.z
fix it.

This is clearly a bug in the built-in functions all() greaterThanEqual() or lessThanEqual().

The nvidia-bug-report.log file and GPU configurations are the same than from this post:
http://www.nvnews.net/vbulletin/showthread.php?t=120860

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 10-13-08, 05:28 PM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: 177.80: Bug in GLSL built-in functions all() , greaterThanEqual(), lessThanEqual(

Please attach the test program.
AaronP 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 01:26 PM.


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