gallivm: make lp_build_float_to_r11g11b10 take a const src
authorDave Airlie <airlied@redhat.com>
Sun, 30 Jun 2019 20:49:59 +0000 (06:49 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 27 Aug 2019 02:29:25 +0000 (12:29 +1000)
This allows using it with a const src later.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_format.h
src/gallium/auxiliary/gallivm/lp_bld_format_float.c

index b1e95c4..ade8825 100644 (file)
@@ -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,
index b87174e..1924650 100644 (file)
@@ -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;