turnip: correctly disable draw states outside of renderpasses
authorJonathan Marek <jonathan@marek.ca>
Thu, 3 Dec 2020 04:49:26 +0000 (23:49 -0500)
committerJonathan Marek <jonathan@marek.ca>
Tue, 8 Dec 2020 18:16:11 +0000 (13:16 -0500)
commit3f58d80823e297ffa4a478d9d600db5ac19227d1
tree856914455d25fef76499687cb27831a38dc6b82b
parentaf6e74bca86823be63907ec91549ff9f8e88f6fb
turnip: correctly disable draw states outside of renderpasses

* do the disable in EndRenderPass2 to fix the missing disable for sysmem
* we don't need a disable at the end of every tile, or between binning pass
  and gmem pass (the first draw in draw_cs emits all the draw states)

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