nir: add a 'const' qualifier to nir_ssa_def_components_read()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 Jan 2018 21:07:23 +0000 (22:07 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 12 Jan 2018 11:25:17 +0000 (12:25 +0100)
commitd5e369ff8a485e9882a7565c15c20581a23f905f
treedf7fb53e07d1ca5476ce1cbff86cba06a203821e
parent897c54d522ab960a879b763a15e489f630c491ee
nir: add a 'const' qualifier to nir_ssa_def_components_read()

To avoid compilation warnings and because this helper
shouldn't update anything.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir.c
src/compiler/nir/nir.h