New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 792210 link

Starred by 1 user

Issue metadata

Status: ExternalDependency
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

GLSL bug: strange name collision between global and inout parameter

Reported by fabrice....@gmail.com, Dec 5 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Example URL:
https://www.shadertoy.com/view/4llBR2

Steps to reproduce the problem:
make a glsl program containing:
vec3 p;
void G (inout vec3 q) { }
void F(vec3 p) { G(p); }

What is the expected behavior?
compile

What went wrong?
doesn't compile on linux, while compile on windows.  
Unknown error "error C7565: assignment to varying".

compiles if
- change name for one of the p
- suppress inout
- call G(p) directly in main

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 14.04
Flash Version: Shockwave Flash 27.0 r0

acid test obtained from the complex case https://www.shadertoy.com/view/MsXfzj

May somebody please set the tags 
Blink>WebGL , Internals>GPU ?
thanks !
 
Components: -Blink Blink>WebGL Internals>GPU

Comment 2 by kbr@chromium.org, Dec 6 2017

Components: -Internals>GPU Internals>GPU>ANGLE
Cc: oetu...@nvidia.com
Status: Available (was: Unconfirmed)
CC'ing Olli in case he has the cycles to look at this.

Comment 4 by oetu...@nvidia.com, Dec 7 2017

This might be an issue in the GPU driver. Which GPU was this seen on?

Probably possible to work around.
nVidias :  GTX 760 , K2100M , and some others.

possible driver bug: workaround is useful, but telling driver's people would also be good ;-)
Labels: GPU-NVidia
Repros for me, seems NVIDIA specific

Comment 7 by oetu...@nvidia.com, Dec 19 2017

A fix will be coming in a future NVIDIA driver update. Here's a conformance test covering the issue:

https://github.com/KhronosGroup/WebGL/pull/2565

Still considering a workaround as well.

Comment 8 by oetu...@nvidia.com, Jan 2 2018

Status: ExternalDependency (was: Available)
The fix for this bug will be released in a future NVIDIA driver update (likely version 39*). Workaround would be a bit complex, and the impact of the bug is fairly small, so marking as ExternalDependency.
Cc: -oetu...@nvidia.com
Cc: kbr@chromium.org
Owner: kkinnu...@nvidia.com
kbr@: any tips on how to make this and other this kind of bugs closeable?
I'd say we can close it once the driver has been released and we can verify the fix with the WebGL test.
Kimmo: currently our Linux NVIDIA fleet is running the 384.90 driver:
https://cs.chromium.org/chromium/src/testing/buildbot/mixins.pyl?q=mixins.pyl&sq=package:chromium&dr&l=261

If you have a suggested driver we should upgrade them to (could you please verify locally first that the bug is fixed in that version), we can follow the procedures documented here to test that driver and then roll out the upgrade:
https://chromium.googlesource.com/chromium/src/+/master/docs/gpu/gpu_testing_bot_details.md#How-to-test-and-deploy-a-driver-update

Thanks for your help.

Sign in to add a comment