yangqiaosheng / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

ESSL loop with break does not work as expected #543

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The simple mandelbrot shader at https://noexcept.org works in Firefox with 
webgl.prefer-native-gl and webgl.force-enabled, but outputs a solid-color 
fullscreen quad when going through ANGLE.

Expected output: http://i.imgur.com/sB7U2FL.png
Actual output: http://i.imgur.com/RzTVTmC.png

I'm using Firefox 26.0 on Windows.

The problematic line seems to be the 'break;' statement in the mandelbrot 
for-loop. Removing the break and testing a variable to set the number of 
iterations only the first time 'z' gets too large, seems to avoid the issue but 
obviously makes the shader much slower.

Please reply if you need any more information.

Original issue reported on code.google.com by mario.be...@gmail.com on 6 Jan 2014 at 11:18

GoogleCodeExporter commented 9 years ago
The bug was in the for-loop unrolling, which we already fixed in the ToT ANGLE.

Once Firefox pulls in the ToT ANGLE, this should go away.

Original comment by z...@google.com on 5 May 2014 at 9:01