Sec. 83.001. CIVIL IMMUNITY [AFFIRMATIVE DEFENSE]. A [It is an affirmative defense to a civil action for damages for personal injury or death that the] defendant who uses force or[, at the time the cause of action arose, was justified in using] deadly force that is justified under Chapter 9 [Section 9.32], Penal Code, is immune from civil liability for personal injury or death that results from the defendant’s [against a person who at the time of the] use of force or deadly force, as applicable [was committing an offense of unlawful entry in the habitation of the defendant].
This is the only civil immunity that I'm aware of, and it limits the benefit of civil liability to civil actions arising from a person injuring or killing a person who has unlawfully entered their habitation.