i965/drm: Inline brw_bo_references.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Apr 2017 05:55:02 +0000 (22:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Aug 2017 06:19:34 +0000 (23:19 -0700)
commit5281e4ed3b2ee25627517c23708bb02857ec5992
treed90486e0f1adcd86a2a0f4f8a0906b519735b0cb
parentb8bea9a0506cc312f4b32762d73598a8a220cf08
i965/drm: Inline brw_bo_references.

It's a single atomic add, so it makes sense to inline it.

Improves performance in Piglit's drawoverhead microbenchmark's
"DrawArrays ( 1 VBO, 0 UBO,  0    ) w/ no state change" subtest by
0.400922% +/- 0.310389% (n=350) on my i7-7700HQ.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_bufmgr.c
src/mesa/drivers/dri/i965/brw_bufmgr.h