mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 12:30:31 +01:00
nir/builder: const'ify swiz param
No need for it not to be const, and lets caller declare it const if desired. Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
52ccc6349f
commit
eb00a0fc58
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ nir_imov_alu(nir_builder *build, nir_alu_src src, unsigned num_components)
|
|||
* Construct an fmov or imov that reswizzles the source's components.
|
||||
*/
|
||||
static inline nir_ssa_def *
|
||||
nir_swizzle(nir_builder *build, nir_ssa_def *src, unsigned swiz[4],
|
||||
nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned swiz[4],
|
||||
unsigned num_components, bool use_fmov)
|
||||
{
|
||||
nir_alu_src alu_src = { NIR_SRC_INIT };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue