i965/vs: Port the fix for clip plane writemasks from brw_vs_emit.c.