summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-13 15:58:49 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-14 14:58:34 -0700
commit2a9031ea448f56d483bf411f2fac46437e9dee47 (patch)
tree2e0ab75fba8231f1828ba8181b40d2a93a7800b2 /src/panfrost/midgard/compiler.h
parent3e6f2e7aba13ad3fcc652df6fb3f3b4919f803d5 (diff)
pan/midgard: Use hint on midgard_instruction for spill_move
This allows us to have multiple spill moves, whereas otherwise for N spill moves, the first N-1 would be clobbered. Issue found in Krita. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index d62157f3be4..cf7547ccda3 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -134,6 +134,9 @@ typedef struct midgard_instruction {
bool no_spill;
+ /* Generic hint for intra-pass use */
+ bool hint;
+
union {
midgard_load_store_word load_store;
midgard_vector_alu alu;