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 b1e95c4e6db0ac9fd8afa290378071c6e5ee71ff..ade8825e1fbcd531797e5a229a623946a42587e8 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 b87174e4a20abc68ccbf45d9b401c9389fa6ce33..1924650ca40905335774c66a7ef5bcfcb79583c4 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;