At least make the z-buffer glitches linear. Do this by interpolating z-slope over x whenever possible.