radeonsi: add a specialized function for CP DMA L2 prefetch
authorMarek Olšák <marek.olsak@amd.com>
Sun, 27 Dec 2020 04:14:01 +0000 (23:14 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 Jan 2021 01:17:19 +0000 (01:17 +0000)
commit961aa67adf651ddb2b035a2ad5608db84fdbd258
tree88375803f775d81a1c41dbd8a4a4fd559f399ea8
parent0eca4660a5588696047c18546a9525e456478af9
radeonsi: add a specialized function for CP DMA L2 prefetch

This radically simplifies the code to decrease CPU overhead in si_draw_vbo.
The generic CP DMA copy function is too complicated.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8548>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_cp_dma.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_draw.cpp