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>
(cherry picked from commit f0d2ad9840)
This commit is contained in:
Lorenzo Rossi 2026-04-30 13:14:57 +02:00 committed by Eric Engestrom
parent 12932633cb
commit a8d018f707
2 changed files with 2 additions and 2 deletions

View file

@ -2394,7 +2394,7 @@
"description": "panvk/jm: Fix tls_size overwrite in indirect draws",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "005703e5b5f1b20903185d2f3f958e3f0aa4cbc4",
"notes": null

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) {