summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_conv.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-21 07:35:49 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:37 +0100
commit3dbf00f9ab0d2e771c72a74d9db32c048ce7df4e (patch)
tree33ec189cfea42c376adcacaa6383e22b49f987ee /src/gallium/drivers/llvmpipe/lp_bld_conv.h
parent33ce51bc0d52dcfbfa481211dd1fe73a5ecb948f (diff)
llvmpipe: Clamped float to unsigned norm via mantissa manipulation.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_conv.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_conv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_conv.h b/src/gallium/drivers/llvmpipe/lp_bld_conv.h
index 0ccd4766a0..b1e3da7e9c 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_conv.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_conv.h
@@ -43,6 +43,13 @@
union lp_type type;
+LLVMValueRef
+lp_build_clamped_float_to_unsigned_norm(LLVMBuilderRef builder,
+ union lp_type src_type,
+ unsigned dst_width,
+ LLVMValueRef src);
+
+
void
lp_build_conv(LLVMBuilderRef builder,
union lp_type src_type,