freedreno/drm: Use same-sized "chunks" for growable rings
authorRob Clark <robdclark@chromium.org>
Wed, 9 Nov 2022 23:47:25 +0000 (15:47 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Nov 2022 01:27:03 +0000 (01:27 +0000)
commit1bb0cd66828a20ba56089d15d122e60f66d28f54
tree1bbf7bd086ef93b3e0349d73ca83b9439eb605ed
parentcb02cf464c16961a8922e0180eeba38fea16ac85
freedreno/drm: Use same-sized "chunks" for growable rings

Using the same size that we suballoc from for suballoc'd streaming and
long-lived stateobjs should help improve bo cache usage, by making more
of the backing BOs the same size and interchangable.

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