radeonsi: add a common function for getting the size of gs_ngg_scratch
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jul 2020 12:31:22 +0000 (08:31 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 7 Aug 2020 15:22:22 +0000 (11:22 -0400)
commit97456e847e090577b67df7ea0a49183fc5e77462
treefcf9e8bad8e5983aa87c8f0c7873427eeae24843
parent68b3e92fef09330ac880e713a744dc7a57e78f05
radeonsi: add a common function for getting the size of gs_ngg_scratch

The next commit will use it.

Fixes: a23802bcb9a - ac,radeonsi: start adding support for gfx10.3
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6137>
src/gallium/drivers/radeonsi/gfx10_shader_ngg.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h