"Be it enacted by the General Assembly of Virginia: 1. That the Code of Virginia is amended by adding in Article 1 of Chapter 4 of Title 18.2 a section numbered 18.2-37.1 and by adding in Article 4 of Chapter 4 of Title 18.2 a section numbered 18.2-57.5 as follows: §18.2-37.1. Certain matters not to constitute defenses. A. Notwithstanding any other provision of law, the discovery of, perception of, or belief about another person's actual or perceived sex, gender, gender identity, or sexual orientation, whether or not accurate, is not a defense to any charge of capital murder, murder in the first degree, murder in the second degree, or voluntary manslaughter and is not provocation negating or excluding malice as an element of murder. B. Nothing in this section shall be construed to prevent a defendant from exercising his constitutionally protected rights, including his right to call for evidence in his favor that is relevant and otherwise admissible in a criminal prosecution. §18.2-57.5. Certain matters not to constitute defenses. A. Notwithstanding any other provision of law, the discovery of, perception of, or belief about another person's actual or perceived sex, gender, gender identity, or sexual orientation, whether or not accurate, is not a defense to any charge brought under this article. B. Nothing in this section shall be construed to prevent a defendant from exercising his constitutionally protected rights, including his right to call for evidence in his favor that is relevant and otherwise admissible in a criminal prosecution."