projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
842338e
)
nir: Copy propagate through vec8s and vec16s
author
Jason Ekstrand
<jason@jlekstrand.net>
Sat, 28 Mar 2020 16:23:52 +0000
(11:23 -0500)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 31 Mar 2020 00:18:05 +0000
(
00:18
+0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
src/compiler/nir/nir_opt_copy_propagate.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_opt_copy_propagate.c
b/src/compiler/nir/nir_opt_copy_propagate.c
index 00c78f384510df9024b21932b4e0616fd09dc91e..4a98a2812c33f0bb5a24143b600d65bd0c787043 100644
(file)
--- 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