struct lp_build_sampler_aos
{
- void
- (*destroy)( struct lp_build_sampler_aos *sampler );
-
LLVMValueRef
- (*emit_fetch_texel)( const struct lp_build_sampler_aos *sampler,
- LLVMBuilderRef builder,
- struct lp_type type,
+ (*emit_fetch_texel)( struct lp_build_sampler_aos *sampler,
+ struct lp_build_context *bld,
unsigned target, /* TGSI_TEXTURE_* */
unsigned unit,
LLVMValueRef coords,
const LLVMValueRef *inputs;
LLVMValueRef *outputs;
- const struct lp_build_sampler_aos *sampler;
+ struct lp_build_sampler_aos *sampler;
LLVMValueRef immediates[LP_MAX_TGSI_IMMEDIATES];
LLVMValueRef temps[LP_MAX_TGSI_TEMPS];
}
return bld->sampler->emit_fetch_texel(bld->sampler,
- bld->base.builder,
- bld->base.type,
+ &bld->base,
target, unit,
coords, ddx, ddy,
modifier);