panfrost: Default to 256 threads for TLS
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 25 Feb 2020 20:34:51 +0000 (15:34 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 27 Feb 2020 15:32:05 +0000 (16:32 +0100)
commitf37cec3275a3bf9d23dfbc43720bb6831eab0242
tree93e636bf195688fcdbdba04995d60b405fad90d9
parentf6ca7ea551665de4a803f46ce980dfafbcbba1e6
panfrost: Default to 256 threads for TLS

I'm not sure where I got the impression 1024 was the right number. From
kbase:

   #define THREAD_MT_DEFAULT 256

(where MT = "max threads" and the threads to allocate for TLS is <= max
threads). Let's cut out memory footprint for spilling by 75% :)

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3950>
src/panfrost/encoder/pan_props.c
src/panfrost/encoder/pan_scratch.c