mc-imperial / shader-compiler-bugs

A collection of shader compiler bugs.
MIT License
49 stars 9 forks source link

Adding valid code leads to compilation fail #57

Closed 0152la closed 7 years ago

0152la commented 7 years ago

[Shaders, screenshots, error log, reproduction steps, platform info, etc.] [ZIP]

What is interesting in the compilation error message is the following line:

ERROR: 0:76: 'webgl_360c969568c90722' : redefinition

This leads to believe that there is an issue with some renaming of variables happening on the low level. Tested with Chrome and Firefox on Windows 10, verified with glslangValidator. Also ran via OpenGL and it successfully compiles and renders.

Recipient:

recipient image

Variant:

Compilation output

paulthomson commented 7 years ago

I can repro this on my MacBook Pro (Intel) Windows 10 Chrome. But not on Edge. I guess this is an ANGLE bug. We should report to them.

afd commented 7 years ago

I have the same issue on my Dell (Intel) laptop with Windows 10 Firefox, but not on Edge. So agreed that this could be an ANGLE issue.

0152la commented 7 years ago

Updated drivers to 378.66 and retested. The shader is now correctly rendered in Chrome, but not in Firefox. Firefox issues the same "redefinition" error as observed above.

paulthomson commented 7 years ago

Perhaps we should label this as an angle issue and maybe even remove the NVIDIA label? I assume Chrome has updated and that's why the issue is gone.

0152la commented 7 years ago

I agree on doing that for both this and #58. They seem to be related.

afd commented 7 years ago

Closing as it indeed seems this issue has been fixed in ANGLE.