Running the following compute shader triggers a crash in the Windows kernel driver (ie. the screen becomes black, and after a few seconds there’s a message from Windows about the video driver having crashed).
Notice that there are three for loops that run only once. Replacing the for loops with simple local variables fixes the problem. Here is a working version:
I’m using commit 0c968f9d0ef66dff741032e7bafd10d413f076fb of glslang (which is very recent).
Driver version 368.22
Windows 7 64bits
Should I provide an executable as well?