r600g: Remove streamout-based buffer copy path
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 20 Jun 2022 15:04:58 +0000 (11:04 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Jun 2022 22:23:31 +0000 (22:23 +0000)
commit21f5c6ea873bb767a14a9c1eb4e6907e8bd76d48
treecc8957bd8b4b1518caa27ec6902cebefc34fb98d
parentf367c5557356a18603fd7a18b8e3e1dd38a5faab
r600g: Remove streamout-based buffer copy path

r600g is the only user of util_blitter_copy_buffer in tree, which implements
buffer copies with streamout. This path for r600g was added in 8ac9801669c
("r600g: accelerate buffer copying"), a commit from 2012. At that point there
was no DMA path for buffer copies. Since then, a DMA path has been added,
conditional only on the kernel version -- not the hardware. It appears the
required kernel support has been mainline for at least 4 years now. Mesa 22.2
doesn't need to provide optimal performance on an old kernel -- for performance,
a DMA-capable kernel should be used, and for compatability, the CPU fallback
(used for unaligned buffers as it is) is still available. Remove the streamout
path "in the middle" that appears ~unused today.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17142>
src/gallium/drivers/r600/r600_blit.c