From fb34369eb5e5992591139d5e04b9bc8cf8b2be71 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 1 Jul 2019 06:49:59 +1000 Subject: [PATCH] gallivm: make lp_build_float_to_r11g11b10 take a const src This allows using it with a const src later. Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/gallivm/lp_bld_format.h | 2 +- src/gallium/auxiliary/gallivm/lp_bld_format_float.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format.h b/src/gallium/auxiliary/gallivm/lp_bld_format.h index b1e95c4..ade8825 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 b87174e..1924650 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; -- 2.7.4