Proper detection for AMD driver bug workaround.

Not sure where I got that.