freedreno/gmem: split out helper to calc # of bins
authorRob Clark <robdclark@chromium.org>
Sat, 23 May 2020 19:42:00 +0000 (12:42 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 26 May 2020 19:29:34 +0000 (19:29 +0000)
commit6aa3004d6049afdbbe85b9f807f5f9f840cb05c9
tree2874d9cd130b6c5d570068da2ac8f54f24de4116
parentfcecdcd82252013020a224f9e2887fcedbe23789
freedreno/gmem: split out helper to calc # of bins

Gets the `nbins_x`/`y` local vars out of the main layout function,
to prevent any confusion like what was fixed in the previous patch
from sneaking back in.

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