aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-10-08 19:48:16 +0100
committerJosé Fonseca <[email protected]>2010-10-08 19:48:16 +0100
commit3fde8167a5d9c1e845053ae4e6a9cd49628adc71 (patch)
treed2038c9c08512c07f236069e10a5252f17f05280 /src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
parent438390418d27838bcfcb5bbb4c486db45dbaa44d (diff)
gallivm: Help for combined extraction and broadcasting.
Doesn't change generated code quality, but saves some typing.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_swizzle.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_swizzle.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
index f9b6a5e7258..fdea8442aef 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
@@ -55,6 +55,14 @@ lp_build_broadcast_scalar(struct lp_build_context *bld,
LLVMValueRef scalar);
+LLVMValueRef
+lp_build_extract_broadcast(LLVMBuilderRef builder,
+ struct lp_type src_type,
+ struct lp_type dst_type,
+ LLVMValueRef vector,
+ LLVMValueRef index);
+
+
/**
* Broadcast one channel of a vector composed of arrays of XYZW structures into
* all four channel.