From: Dave Airlie Date: Sun, 30 Jun 2019 20:49:59 +0000 (+1000) Subject: gallivm: make lp_build_float_to_r11g11b10 take a const src X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb34369eb5e5992591139d5e04b9bc8cf8b2be71;p=mesa.git gallivm: make lp_build_float_to_r11g11b10 take a const src This allows using it with a const src later. Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format.h b/src/gallium/auxiliary/gallivm/lp_bld_format.h index b1e95c4e6db..ade8825e1fb 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_format.h @@ -204,7 +204,7 @@ lp_build_smallfloat_to_float(struct gallivm_state *gallivm, LLVMValueRef lp_build_float_to_r11g11b10(struct gallivm_state *gallivm, - LLVMValueRef *src); + const LLVMValueRef *src); void lp_build_r11g11b10_to_float(struct gallivm_state *gallivm, diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_float.c b/src/gallium/auxiliary/gallivm/lp_bld_format_float.c index b87174e4a20..1924650ca40 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_float.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_float.c @@ -235,7 +235,7 @@ lp_build_float_to_smallfloat(struct gallivm_state *gallivm, */ LLVMValueRef lp_build_float_to_r11g11b10(struct gallivm_state *gallivm, - LLVMValueRef *src) + const LLVMValueRef *src) { LLVMValueRef dst, rcomp, bcomp, gcomp; struct lp_build_context i32_bld;