turnip: early exit in tu6_draw_common to save cpu cycles
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 23 Jun 2021 10:55:06 +0000 (13:55 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 25 Jun 2021 13:37:32 +0000 (13:37 +0000)
commita9fd4fa26c64275168946fa4d29ad066c0da7bc4
tree1c26450e02b6ea50bec4b56058c640c2d152c350
parent815a85dd7c44f4be4cbf5b351836c921a7a923fd
turnip: early exit in tu6_draw_common to save cpu cycles

Improves Zink + drawoverhead perf up to 4%

Before:
  1, DrawElements ( 1 VBO| 0 UBO|  0    ) w/ no state change, 3981
  1, DrawElements ( 1 VBO| 0 UBO|  0    ) w/ no state change, 3977

After:
  1, DrawElements ( 1 VBO| 0 UBO|  0    ) w/ no state change, 4136
  1, DrawElements ( 1 VBO| 0 UBO|  0    ) w/ no state change, 4163

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11556>
src/freedreno/vulkan/tu_cmd_buffer.c