freedreno: add helper to estimate # of bins per pipe
authorRob Clark <robdclark@chromium.org>
Sat, 25 Apr 2020 17:45:31 +0000 (10:45 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 23:31:58 +0000 (23:31 +0000)
commit99d802ccc77c7897f27d75275d38c702f3db6fd8
treef706cfea7fa49226319b3b6959eef756c38befe3
parenta9c255d70c303436bf4f9b1be08b2679373f17a2
freedreno: add helper to estimate # of bins per pipe

For vsc size calculation, we need to know the # of bins per pipe.  Or at
least the worst-case # of bins, assuming we don't eliminate an unused depth/
stencil buffer.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4750>
src/gallium/drivers/freedreno/freedreno_gmem.c
src/gallium/drivers/freedreno/freedreno_gmem.h