Texas man gets 12 years for carjacking