gallivm/llvmpipe: add const qualifiers on sampler variables
authorBrian Paul <brianp@vmware.com>
Thu, 1 Feb 2018 20:17:08 +0000 (13:17 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Feb 2018 21:19:58 +0000 (14:19 -0700)
commit7a044ef68b84ab850a2299462e03aedf94a3db02
treead0c3709bd04da2559c8cb3d904ec08fafacbe07
parent1bdbeae17ce62f52b0ac19960c71078dff7a2da2
gallivm/llvmpipe: add const qualifiers on sampler variables

Once a lp_build_sampler_soa or lp_build_sampler_aos object is created,
it should never be modified.  Found by inspection.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/drivers/llvmpipe/lp_state_fs.c