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:

committed by
Marge Bot

parent
b43b1535e2
commit
f0421099ef
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user