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/drivers/llvmpipe | |
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/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 0daf7aecf6e..603fd84f6b1 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -299,7 +299,7 @@ generate_fs_loop(struct gallivm_state *gallivm, LLVMValueRef context_ptr, LLVMValueRef num_loop, struct lp_build_interp_soa_context *interp, - struct lp_build_sampler_soa *sampler, + const struct lp_build_sampler_soa *sampler, LLVMValueRef mask_store, LLVMValueRef (*out_color)[4], LLVMValueRef depth_ptr, |