diff options
author | Brian Paul <[email protected]> | 2018-02-01 13:17:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-02-01 14:19:58 -0700 |
commit | 7a044ef68b84ab850a2299462e03aedf94a3db02 (patch) | |
tree | ad0c3709bd04da2559c8cb3d904ec08fafacbe07 /src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c | |
parent | 1bdbeae17ce62f52b0ac19960c71078dff7a2da2 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c index 2529c6a8bf9..85b2e8a207e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c @@ -862,7 +862,7 @@ lp_build_tgsi_aos(struct gallivm_state *gallivm, LLVMValueRef consts_ptr, const LLVMValueRef *inputs, LLVMValueRef *outputs, - struct lp_build_sampler_aos *sampler, + const struct lp_build_sampler_aos *sampler, const struct tgsi_shader_info *info) { struct lp_build_tgsi_aos_context bld; |