pan/bi: Pipe through tls_size

So we have stack memory allocated.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
Alyssa Rosenzweig
2020-10-14 20:48:08 -04:00
committed by Marge Bot
parent b43b1535e2
commit f0421099ef
3 changed files with 4 additions and 0 deletions

View File

@@ -384,6 +384,7 @@ bi_register_allocate(bi_context *ctx)
assert(success);
ctx->tls_size = spill_count;
bi_install_registers(ctx, l);
lcra_free(l);

View File

@@ -1966,6 +1966,8 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
if (bifrost_debug & BIFROST_DBG_SHADERS)
disassemble_bifrost(stdout, program->compiled.data, program->compiled.size, true);
program->tls_size = ctx->tls_size;
ralloc_free(ctx);
return program;

View File

@@ -450,6 +450,7 @@ typedef struct {
struct list_head blocks; /* list of bi_block */
struct panfrost_sysvals sysvals;
uint32_t quirks;
unsigned tls_size;
/* Is internally a blend shader? Depends on stage == FRAGMENT */
bool is_blend;