freedreno/a6xx: Use fd6_pipe2tex() for the 2D src format.
authorEmma Anholt <emma@anholt.net>
Fri, 1 Oct 2021 23:41:39 +0000 (16:41 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 Oct 2021 20:09:17 +0000 (20:09 +0000)
commit4d6f5cd57282f5af28ac47193810d7a03c4be073
tree9878eba9b85ca6bbbfb33adfd42a25fa35fe7809
parent7952a17f7f01935bfb74d0782d3efa72b3aaa25a
freedreno/a6xx: Use fd6_pipe2tex() for the 2D src format.

The differences between the two are:

- tex supports more formats (fine, we've already decided on which formats
  we can blit)
- FMT6_10_10_10_2_UNORM instead of FMT6_10_10_10_2_UNORM_DEST.
- FMT6_A8_UNORM for PIPE_FORMAT_A8_UNORM.

For 1555 support we get another difference between tex and color, and we
need 2/3 of the tex differences for blit srcs, so switch it over.  This
also matches what turnip does (except it doesn't have A8 as a format).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13046>
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c