projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99540ed
)
nir: Handle vec8/16 in opt_undef_vecN
author
Jason Ekstrand
<jason@jlekstrand.net>
Mon, 30 Mar 2020 17:09:03 +0000
(12:09 -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_undef.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_opt_undef.c
b/src/compiler/nir/nir_opt_undef.c
index 1f939e82c68e25f188cc515add2f9daccc47437d..6342377ba620d2fb07b325b1dbf38a1ce1edda91 100644
(file)
--- a/
src/compiler/nir/nir_opt_undef.c
+++ b/
src/compiler/nir/nir_opt_undef.c
@@
-77,10
+77,7
@@
opt_undef_csel(nir_alu_instr *instr)
static bool
opt_undef_vecN(nir_builder *b, nir_alu_instr *alu)
{
- if (alu->op != nir_op_vec2 &&
- alu->op != nir_op_vec3 &&
- alu->op != nir_op_vec4 &&
- alu->op != nir_op_mov)
+ if (!nir_op_is_vec(alu->op))
return false;
assert(alu->dest.dest.is_ssa);