turnip: vsc improvements
authorJonathan Marek <jonathan@marek.ca>
Thu, 18 Jun 2020 22:08:58 +0000 (18:08 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jul 2020 14:49:10 +0000 (14:49 +0000)
commit0e7b7c3087026015b293e224f024dc4ba7aecb84
treedf3f3b9a0debb04f2cccfa2f2bcf47464dc22a4c
parent4ac851ea2534de797b765db6554ea92afc19bdc1
turnip: vsc improvements

* Remove scratch_bo from cmdbuffer, use a device-global bo instead, which
  also includes border color (and eventually shaders for 3D blit path)
* Use CP_SET_BIN_DATA5_OFFSET to allow setting VSC buffer addresses only
  once at the start of the cmdstream
* Use scratch bo mechanism for a resizable VSC buffer
* Use feedback from "vsc_draw_overflow" and "vsc_prim_overflow" values to
  increase the size of VSC buffer when beginning to record a new cmdbuffer

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5570>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_private.h