summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_tex_sample.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-09-06 11:20:14 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-09-07 15:02:06 +0100
commit8be72bb7646d430e66cb36e09c13c13bee030d53 (patch)
tree465973b40e1d0b4964f95f6950a5a972342e869f /src/gallium/drivers/llvmpipe/lp_tex_sample.h
parent970823978c2f7d2cf0757aa6ddbd6289b34c476f (diff)
llvmpipe: Further abstract the texture sampling generation from TGSI translation.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tex_sample.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tex_sample.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tex_sample.h b/src/gallium/drivers/llvmpipe/lp_tex_sample.h
index 628ec3f1ef..7d1e565885 100644
--- a/src/gallium/drivers/llvmpipe/lp_tex_sample.h
+++ b/src/gallium/drivers/llvmpipe/lp_tex_sample.h
@@ -29,6 +29,8 @@
#define LP_TEX_SAMPLE_H
+#include <llvm-c/Core.h>
+
#include "tgsi/tgsi_exec.h"
@@ -75,4 +77,14 @@ lp_get_samples(struct tgsi_sampler *tgsi_sampler,
float rgba[NUM_CHANNELS][QUAD_SIZE]);
+/**
+ * Texture sampling code generator that just calls lp_get_samples C function
+ * for the actual sampling computation.
+ *
+ * @param context_ptr LLVM value with the pointer to the struct lp_jit_context.
+ */
+struct lp_build_sampler_soa *
+lp_c_sampler_soa_create(LLVMValueRef context_ptr);
+
+
#endif /* LP_TEX_SAMPLE_H */