mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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:
parent
768d7cb149
commit
f0d2ad9840
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue