mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
nir: Handle vec8/16 in opt_undef_vecN
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>
This commit is contained in:
parent
99540edfde
commit
c26bf848ba
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue