summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-12-09 11:18:21 -0500
committerAlyssa Rosenzweig <[email protected]>2019-12-13 10:26:35 -0500
commit7597015b851db366824355bd42a59c1a67b1343c (patch)
tree2f1a91301a3825c0de4447c14cd0a2607bf27fa0
parent440cd835de6f0555812f2ddecb5abf42bf32991a (diff)
panfrost: Route stack_size from compiler
We'll need it in pan_context.c Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/gallium/drivers/panfrost/pan_assemble.c1
-rw-r--r--src/gallium/drivers/panfrost/pan_context.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c
index 1f478fd1e3b..e91b20df971 100644
--- a/src/gallium/drivers/panfrost/pan_assemble.c
+++ b/src/gallium/drivers/panfrost/pan_assemble.c
@@ -111,6 +111,7 @@ panfrost_shader_compile(
state->writes_point_size = program.writes_point_size;
state->reads_point_coord = false;
state->helper_invocations = s->info.fs.needs_helper_invocations;
+ state->stack_size = program.tls_size;
if (outputs_written)
*outputs_written = s->info.outputs_written;
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h
index f1db89dab12..51114754ea4 100644
--- a/src/gallium/drivers/panfrost/pan_context.h
+++ b/src/gallium/drivers/panfrost/pan_context.h
@@ -214,6 +214,7 @@ struct panfrost_shader_state {
bool reads_point_coord;
bool reads_face;
bool reads_frag_coord;
+ unsigned stack_size;
struct mali_attr_meta varyings[PIPE_MAX_ATTRIBS];
gl_varying_slot varyings_loc[PIPE_MAX_ATTRIBS];