aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-03-28 11:23:52 -0500
committerMarge Bot <[email protected]>2020-03-31 00:18:05 +0000
commitf5bbdf7621f882f3e769ea6941f0b6ad46e032d7 (patch)
treeac38db9614604e9b8a7a128ae1e63e1bc5bea4a8 /src/compiler/nir
parent842338e2f0bdf2b7025f2d29851aa90dd2106777 (diff)
nir: Copy propagate through vec8s and vec16s
Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_opt_copy_propagate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_opt_copy_propagate.c b/src/compiler/nir/nir_opt_copy_propagate.c
index 00c78f38451..4a98a2812c3 100644
--- a/src/compiler/nir/nir_opt_copy_propagate.c
+++ b/src/compiler/nir/nir_opt_copy_propagate.c
@@ -61,9 +61,8 @@ static bool is_vec(nir_alu_instr *instr)
return false;
}
- return instr->op == nir_op_vec2 ||
- instr->op == nir_op_vec3 ||
- instr->op == nir_op_vec4;
+ assert(instr->dest.dest.is_ssa);
+ return nir_op_is_vec(instr->op);
}
static bool