aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-12 13:19:23 -0400
committerMarge Bot <[email protected]>2020-05-12 22:30:41 +0000
commitd429187bf3988fca190fcbd53e416b8a46506b25 (patch)
tree6797c8fa06ba27b6d7ce506f434fc06ecf602306 /src/panfrost/midgard/compiler.h
parent3228b3106a672e79093f2186f3e040a7579cd7b4 (diff)
pan/mdg: Analyze helper execution requirements
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index 6db0cfea466..bf125369fde 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -107,6 +107,7 @@ typedef struct midgard_instruction {
/* For textures: should helpers execute this instruction (instead of
* just helping with derivatives)? Should helpers terminate after? */
bool helper_terminate;
+ bool helper_execute;
/* I.e. (1 << alu_bit) */
int unit;
@@ -634,6 +635,7 @@ midgard_lower_derivatives(compiler_context *ctx, midgard_block *block);
bool mir_op_computes_derivatives(gl_shader_stage stage, unsigned op);
void mir_analyze_helper_terminate(compiler_context *ctx);
+void mir_analyze_helper_requirements(compiler_context *ctx);
/* Final emission */