summaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/midgard/midgard_opt_copy_prop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/panfrost/midgard/midgard_opt_copy_prop.c b/src/panfrost/midgard/midgard_opt_copy_prop.c
index 20e256e6637..242db1eae2d 100644
--- a/src/panfrost/midgard/midgard_opt_copy_prop.c
+++ b/src/panfrost/midgard/midgard_opt_copy_prop.c
@@ -110,11 +110,12 @@ midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block)
if (!(is_tex || is_ldst || is_branch)) continue;
- /* For textures, we get one real swizzle. For stores,
- * we also get one. For loads, we get none. */
+ /* For textures, we get a real swizzle for the
+ * coordinate and the content. For stores, we get one.
+ * For loads, we get none. */
unsigned start =
- is_tex ? 1 :
+ is_tex ? 2 :
OP_IS_STORE(q->load_store.op) ? 1 : 0;
mir_foreach_src(q, s) {