mesa/main: make the PRIMITIVE_RESTART_NV checks consistent