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

Newegg Daily Deals

Thread Tools
Old 02-10-06, 06:33 AM   #1
Registered User
Join Date: Feb 2006
Posts: 2
Default [BUG?] LC_NUMERIC affecting GLSL shader assembly code generation


think I found a bug on the 1.0-8178 driver. The bug also affects the 1.0-7676 and certainly the precedents. I don't know if maintainers are aware of that, and I post here before sending a email to linux-bugs@nvidia.com.

The locale affects the shader assembly code generation of GLSL shaders.

An application which takes care of the current locale uses the following code to set the appropriate locale :

#include <locale.h>
setlocale (LC_ALL, "");
There is no problems for english users, but with a french locale for example, the LC_NUMERIC variable affects the glibc which will converts 0.56 to 0,56. It seems to affect the assembly code generation since with a very basic fragment shader like that :

void main (void)
    gl_FragColor = vec4 (0.2, 0.3, 0.4, 1.0);
and with a fr_FR locale, I receive the following output :

Fragment info
Internal error: assembly compile error for fragment shader at offset 235:
-- error message --
line 9, column 25:  error: expected '}'
-- internal assembly text --
# cgc version 1.3.0001, build date Jul 29 2005 13:26:34
# command line args:
#vendor NVIDIA Corporation
#version 1.0.02
#profile fp30
#program main
#var float4 gl_FragColor : $vout.COLOR : COL : -1 : 1
MOVR  o[COLR], {0,2, 0,3, 0,4, 1};
# 1 instructions, 0 R-regs, 0 H-regs
whereas with a C locale, there is no problem.

Regards, Loc Molinari.
loicm is offline   Reply With Quote
Old 02-10-06, 06:59 AM   #2
NVIDIA Corporation
zander's Avatar
Join Date: Aug 2002
Posts: 3,740
Default Re: [BUG?] LC_NUMERIC affecting GLSL shader assembly code generation

Thank you for your report; this actually is a known problem, please see http://www.nvnews.net/vbulletin/showthread.php?t=56153 for an earlier discussion.
zander is offline   Reply With Quote

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 07:35 PM.

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