iris: Skip emitting 3DSTATE_INDEX_BUFFER if possible
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Feb 2019 08:57:54 +0000 (00:57 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 31 Jul 2019 22:14:10 +0000 (15:14 -0700)
commitb61f17d3627bfcc51844e5a55a3e9a9a546007e0
treeeeaaa869f02c3092dd438083009f8dcfa0dfa48c
parent8af1990ad7703dd6805af9beb3a32ca7170c10c2
iris: Skip emitting 3DSTATE_INDEX_BUFFER if possible

We were emitting 3DSTATE_INDEX_BUFFER on every indexed draw, even if
back-to-back draws referred to the same index buffer.  This improves
drawoverhead scores in the DrawElements cases by about 10%, by giving
us even more minimal batches.
src/gallium/drivers/iris/iris_context.c
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_state.c