From: Alyssa Rosenzweig Date: Thu, 15 Oct 2020 00:48:08 +0000 (-0400) Subject: pan/bi: Pipe through tls_size X-Git-Tag: upstream/21.0.0~3357 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0421099efcece38d866fc749663c61fa880f2cb;p=platform%2Fupstream%2Fmesa.git pan/bi: Pipe through tls_size So we have stack memory allocated. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index b586969..3d28e15 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -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); diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index fc71e5c..99f4a16 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -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; diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 1fc0d03..176f7fd 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -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;