aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_bld_tgsi.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-08-25 08:05:31 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:42 +0100
commitc40eddd294abfe8af3619d08ccd7e9c8f1660fcb (patch)
tree6723081feab6f7376197c58afbe585d68f8e110e /src/gallium/drivers/llvmpipe/lp_bld_tgsi.h
parentd4806c64a23b8dfc58313b54e607f6c3cd8ae5ff (diff)
llvmpipe: Isolate sampling from TGSI translation.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_tgsi.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_tgsi.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_tgsi.h b/src/gallium/drivers/llvmpipe/lp_bld_tgsi.h
index d42ab99cf82..912db24aecb 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi.h
@@ -39,15 +39,19 @@
struct tgsi_token;
-struct tgsi_sampler;
union lp_type;
struct lp_build_context;
struct lp_build_mask_context;
-void PIPE_CDECL
-lp_build_tgsi_fetch_texel_soa( struct tgsi_sampler **samplers,
- uint32_t unit,
- float *store );
+
+typedef void
+(*lp_emit_fetch_texel_soa_callback)( LLVMBuilderRef builder,
+ void *context,
+ unsigned unit,
+ unsigned num_coords,
+ const LLVMValueRef *coords,
+ LLVMValueRef lodbias,
+ LLVMValueRef *texel);
void
lp_build_tgsi_soa(LLVMBuilderRef builder,
@@ -58,7 +62,8 @@ lp_build_tgsi_soa(LLVMBuilderRef builder,
const LLVMValueRef *pos,
const LLVMValueRef (*inputs)[4],
LLVMValueRef (*outputs)[4],
- LLVMValueRef samplers_ptr);
+ lp_emit_fetch_texel_soa_callback emit_fetch_texel,
+ void *emit_fetch_texel_context);
#endif /* LP_BLD_TGSI_H */