lima: Implement lima_texture_subdata
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 23 Mar 2020 06:12:06 +0000 (23:12 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sat, 28 Mar 2020 00:17:40 +0000 (00:17 +0000)
commit5d45ffbfb6c4db9962f705cddf90acee59f4f24b
treeda06017d04dabbdd097b04601ce8430804ce447a
parent6a10397a01248140de1aa92ce826dee88d445a1a
lima: Implement lima_texture_subdata

We can avoid intermediate copy if we implement it ourselves.
Improves x11perf -shmput500 from 199.0/s to 283.0/s

Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4281>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4281>
src/gallium/drivers/lima/lima_resource.c