freedreno/drm: Inline the fence-table
authorRob Clark <robdclark@chromium.org>
Mon, 26 Apr 2021 20:39:04 +0000 (13:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 28 Apr 2021 15:36:42 +0000 (15:36 +0000)
commit49852ace2a734dde8f157769a841f15892361b11
treec8d38d9d138c6ee5960c7a52159e71c09ca1bb40
parent7dabd62464982e545a094f22d9ca23a77730c536
freedreno/drm: Inline the fence-table

In the common case, a bo will have no more than a single fence attached.
We can inline the storage to avoid a separate allocation in this case.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10444>
src/freedreno/drm/freedreno_bo.c
src/freedreno/drm/freedreno_priv.h