mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nir/spirv: Use breaks instead of returns in constant handling
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
a19ae36ce5
commit
b26cdd65e8
1 changed files with 4 additions and 3 deletions
|
|
@ -1028,7 +1028,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
|
|||
val->constant->value.u[i] = u[comp];
|
||||
}
|
||||
}
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
case SpvOpCompositeExtract:
|
||||
|
|
@ -1105,7 +1105,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
|
|||
(*c)->value.u[elem + i] = insert->constant->value.u[i];
|
||||
}
|
||||
}
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
|
|
@ -1134,9 +1134,10 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
|
|||
for (unsigned k = 0; k < num_components; k++)
|
||||
val->constant->value.u[k] = res.u32[k];
|
||||
|
||||
return;
|
||||
break;
|
||||
} /* default */
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case SpvOpConstantNull:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue