i965: make sure check_and_emit_atom gets inlined
authorTapani Pälli <tapani.palli@intel.com>
Tue, 15 Aug 2017 06:26:09 +0000 (09:26 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 16 Aug 2017 09:32:32 +0000 (12:32 +0300)
commit733422e53c8758ce3f63db2109929339259681d8
treee831b38a44a4c05b5a470cc5cc132b88180ba281
parentf96f210239d8fdf2f1369cccfaeef06d0a53453e
i965: make sure check_and_emit_atom gets inlined

Improves performance of 3DMark "Ice Storm Unlimited" benchmark
by 1-2% on Apollolake (on Android-IA using clang 3.8.256229).

Change is based on the performance profiling work and results
by Aravindan Muthukumar and Yogesh Marathe.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Aravindan Muthukumar <aravindan.muthukumar@intel.com>
Signed-off-by: Yogesh Marathe <yogesh.marathe@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_state_upload.c