i965: Don't inline intel_batchbuffer_require_space().
authorMatt Turner <mattst88@gmail.com>
Wed, 25 Nov 2015 01:17:29 +0000 (17:17 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 30 Mar 2016 20:12:34 +0000 (13:12 -0700)
commita74fc3fe8ada87e1fedeea86f2d93f736a1217bc
tree85f6845d7d204e081053c91a0ddfc4878db0663e
parent1faca438bdbf11d85a6158d41ea91cab40fc2033
i965: Don't inline intel_batchbuffer_require_space().

It's called by the inline intel_batchbuffer_begin() function which
itself is used in BEGIN_BATCH. So in sequence of code emitting multiple
packets, we have inlined this ~200 byte function multiple times. Making
it an out-of-line function presumably improved icache usage.

Improves performance of Gl32Batch7 by 3.39898% +/- 0.358674% (n=155) on
Ivybridge.

Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h