panvk/jm: Fix tls_size overwrite in indirect draws

Only caused problems when the VS/FS has more TLS than our internal shaders
that doesn't usually happen but will cause bugs when we start to
compress local memory.

Fixes: 005703e5b5 ("panvk: Move TLS preparation logic to cmd_dispatch_prepare_tls")
Signed-off-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40924>
This commit is contained in:
Lorenzo Rossi 2026-04-30 13:14:57 +02:00 committed by Marge Bot
parent 768d7cb149
commit f0d2ad9840

View file

@ -44,7 +44,7 @@ panvk_per_arch(cmd_dispatch_prepare_tls)(
panvk_per_arch(cmd_alloc_tls_desc)(cmdbuf, false);
batch->tlsinfo.tls.size = cs->info.tls_size;
batch->tlsinfo.tls.size = MAX2(cs->info.tls_size, batch->tlsinfo.tls.size);
batch->tlsinfo.wls.size = cs->info.wls_size;
if (batch->tlsinfo.wls.size) {