nir/builder: const'ify swiz param
authorRob Clark <robclark@freedesktop.org>
Tue, 19 Apr 2016 19:44:25 +0000 (15:44 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 19 Apr 2016 21:13:36 +0000 (17:13 -0400)
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>
src/compiler/nir/nir_builder.h

index 35d65b4a5cfe95fd398c2b993eceb98ed07e1c7a..e4e0895d3af09eb2f4cf5593dca7c747d44175e5 100644 (file)
@@ -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 };