Replace the flags Mesa was using for ctx->NewState with a new set