summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_format.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-03-24 02:08:01 +0100
committerRoland Scheidegger <sroland@vmware.com>2013-03-24 22:54:45 +0100
commit92b8a37fdfff9e83f39b8885f51ed2f60326ab6a (patch)
treeb199c7a0402bdea36eef3ba8db181f8812b70ac5 /src/gallium/auxiliary/gallivm/lp_bld_format.h
parent7d0c1f243754ebe48eef4ece17166ee18e03044d (diff)
downloadexternal_mesa3d-92b8a37fdfff9e83f39b8885f51ed2f60326ab6a.zip
external_mesa3d-92b8a37fdfff9e83f39b8885f51ed2f60326ab6a.tar.gz
external_mesa3d-92b8a37fdfff9e83f39b8885f51ed2f60326ab6a.tar.bz2
gallivm: move code for dealing with rgb9e5 and r11g11b10 formats to own file
This is really not generic conversion stuff and the code very particular to these formats.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_format.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_format.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format.h b/src/gallium/auxiliary/gallivm/lp_bld_format.h
index 8fb173b..f9ddc68 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format.h
@@ -122,4 +122,22 @@ lp_build_fetch_subsampled_rgba_aos(struct gallivm_state *gallivm,
LLVMValueRef i,
LLVMValueRef j);
+/*
+ * special float formats
+ */
+
+LLVMValueRef
+lp_build_float_to_r11g11b10(struct gallivm_state *gallivm,
+ LLVMValueRef *src);
+
+void
+lp_build_r11g11b10_to_float(struct gallivm_state *gallivm,
+ LLVMValueRef src,
+ LLVMValueRef *dst);
+
+void
+lp_build_rgb9e5_to_float(struct gallivm_state *gallivm,
+ LLVMValueRef src,
+ LLVMValueRef *dst);
+
#endif /* !LP_BLD_FORMAT_H */