turnip: delete tu_clear_sysmem_attachments_2d
authorJonathan Marek <jonathan@marek.ca>
Mon, 6 Jul 2020 15:33:32 +0000 (11:33 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Aug 2020 22:38:22 +0000 (22:38 +0000)
commitba6cdb275c3bfbf8c9990674c5c44d58d9747f49
treeef9542cec86832669871513ff5c2c5d21d48d0d1
parent9b6486bd3d927e34befb2c5d15261bd5f7ae52c1
turnip: delete tu_clear_sysmem_attachments_2d

2D path is using the same hardware as the 3D path, with the advantage of
separate register state, but here it requires WFI and extra cache flushing
and invalidating, so it should be better to just use the 3D path. There are
also some cases where the 3D path would be much faster, since it can clear
multiple attachments at once.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5775>
src/freedreno/vulkan/tu_clear_blit.c