summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_sample.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-10-22 22:37:06 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-10-25 09:53:48 +0000
commitbc93e9181cf179a797679d30cd1a3a563e1756c0 (patch)
treee7ec248a60d5ecc06ce86f1390edb5d1c0e111f8 /src/gallium/drivers/llvmpipe/lp_bld_sample.h
parentfedd054d534206a5ebd6fed204aa97cbb5053b3a (diff)
llvmpipe: Factor our pixel offset computation.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_sample.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_sample.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_sample.h b/src/gallium/drivers/llvmpipe/lp_bld_sample.h
index 2b56179eb8..8cb8210ca7 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_sample.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_sample.h
@@ -40,7 +40,9 @@
struct pipe_texture;
struct pipe_sampler_state;
+struct util_format_description;
struct lp_type;
+struct lp_build_context;
/**
@@ -128,6 +130,15 @@ lp_build_gather(LLVMBuilderRef builder,
LLVMValueRef offsets);
+LLVMValueRef
+lp_build_sample_offset(struct lp_build_context *bld,
+ const struct util_format_description *format_desc,
+ LLVMValueRef x,
+ LLVMValueRef y,
+ LLVMValueRef y_stride,
+ LLVMValueRef data_ptr);
+
+
void
lp_build_sample_soa(LLVMBuilderRef builder,
const struct lp_sampler_static_state *static_state,