nvc0: set local mem size for compute on gv100
authorKarol Herbst <kherbst@redhat.com>
Thu, 9 Jul 2020 21:52:56 +0000 (23:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 11 Jul 2020 19:57:18 +0000 (19:57 +0000)
commite086f64d3936f496acf41c8b2aa276f09eed6a62
treee87b797c122ea4b279c9c6ab47c4633f39b40f8d
parent248fbe15675c39de4faa7c083b6f5190cc5560fe
nvc0: set local mem size for compute on gv100

This is required when the shader uses local memory for arrays or spills.
I really dislike how it's done right now, but oh well, it's the same for
other gens.

Fixes CTS tests:
KHR-GL46.shading_language_420pack.binding_image_array
KHR-GL46.shading_language_420pack.length_of_compute_result

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5840>
src/gallium/drivers/nouveau/nvc0/nve4_compute.c