r100/r200: factor out txformat/txfilter setup from the TFP path.
authorEric Anholt <eric@anholt.net>
Thu, 5 Sep 2019 22:48:58 +0000 (15:48 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 20 Oct 2019 04:39:48 +0000 (04:39 +0000)
commitecddabfa76aeac282c1a5c365708cd0a79e3b80d
tree2d1926ce344f700ecae50c38c5d4f2cc2282c5d8
parent7ceafa4b40743f447998915deb83d42939d6faa6
r100/r200: factor out txformat/txfilter setup from the TFP path.

No matter what, we deref the texFormat from the table, except for a
mistake in cpp=4 where we pulled a 0 out of the table either way.

v2: Rebase on dropping r200 table deduplication patch.

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
src/mesa/drivers/dri/r200/r200_texstate.c
src/mesa/drivers/dri/radeon/radeon_texstate.c