summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-04-19 15:44:25 -0400
committerRob Clark <[email protected]>2016-04-19 17:13:36 -0400
commiteb00a0fc581c4040bc2e4640da4ff9f40c951ae8 (patch)
tree4ada00e94c34c9cbc3e549dbae1a8f101c0842f7
parent52ccc6349fe42a8a480d7472c61c8eb069aadb6b (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/compiler/nir/nir_builder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h
index 35d65b4a5cf..e4e0895d3af 100644
--- a/src/compiler/nir/nir_builder.h
+++ b/src/compiler/nir/nir_builder.h
@@ -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 };