Fix bugs for some GPUs (Radeon).