Comment 32 for bug 1029582

Please give the attached V3 version of the patch a try, it adds the last emitted fence as an upper limit and so should be able to even handle "deadbeef" values.

Cheers,
Christian.