(c) The use of force to resist an arrest or search is justified:
(1) if, before the actor offers any resistance, the peace officer (or
person acting at his direction) uses or attempts to use greater force
than necessary to make the arrest or search; and
(2) when and to the degree the actor reasonably believes the
force is immediately necessary to protect himself against the peace officer's
(or other person's) use or attempted use of greater force than
necessary.
(d) The use of deadly force is not justified under this subchapter
except as provided in Sections 9.32, 9.33, and 9.34.