mapi: Inline call x86_current_tls.
authorLepton Wu <lepton@chromium.org>
Tue, 22 Oct 2019 03:22:18 +0000 (20:22 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 30 Oct 2019 00:18:06 +0000 (17:18 -0700)
commit41407d5e9fcf9b73d402292e64fa9db02c372b5f
treea57f966c1363519ef223419515919e32475cfd4c
parentb2b8639d8e901008b4501e35957d27da170de042
mapi: Inline call x86_current_tls.

This saves one return and a simple benchmark which calls glGetString
repeatedly on my desktop shows it improves calls per second from 123M
to 141M.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1997
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Lepton Wu <lepton@chromium.org>
src/mapi/entry_x86_tls.h