This is similar to commit 0efea25c in 7.10. The change was made
directly in the 7.9 branch because the affected code does not exist in
Mesa 7.10 or later. It was removed with the change to the new
fragment shader back-end.
Fixes the GPU hang in piglit test glsl-fs-discard-03.