freedreno: Move the resource_read early out to an inline.
authorEric Anholt <eric@anholt.net>
Mon, 11 May 2020 22:08:35 +0000 (15:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 21:19:50 +0000 (21:19 +0000)
commit356f99161df36223091cf9721dd49e52cb9e5e3e
tree002116af825194e038c10c3d3ec50a5fa28861dd
parentd393837332a07f53b9622ca55149e63947e0f937
freedreno: Move the resource_read early out to an inline.

Looking at perf, the drawoverhead test case was now spending 13% CPU (89%
in that function) on stack management.

nohw drawoverhead throughput 1.03902% +/- 0.380257% (n=13).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4996>
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h
src/gallium/drivers/freedreno/freedreno_resource.h