panfrost: Route stack_size from compiler
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 9 Dec 2019 16:18:21 +0000 (11:18 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 15:26:35 +0000 (10:26 -0500)
We'll need it in pan_context.c

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_assemble.c
src/gallium/drivers/panfrost/pan_context.h

index 1f478fd1e3bb753408ebe08ecb317e25e866da93..e91b20df971e4b5b4096c0e3c81a9383b7eb3e33 100644 (file)
@@ -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;
index f1db89dab125e59aa2f73153fe01110b4e8589f2..51114754ea46424bc29b85114d0df619752ee475 100644 (file)
@@ -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];