gallivm,llvmpipe: handle TXF (texelFetch) instruction, including offsets
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_tgsi.h
index e292420a61a6c67e467fd21f82065a0510ee7dcf..16d2ed9e6f7ccd76c5a8f5def3ada27ad2fc2bc3 100644 (file)
@@ -172,9 +172,10 @@ struct lp_build_sampler_soa
    (*emit_fetch_texel)( const struct lp_build_sampler_soa *sampler,
                         struct gallivm_state *gallivm,
                         struct lp_type type,
+                        boolean is_fetch,
                         unsigned unit,
-                        unsigned num_coords,
                         const LLVMValueRef *coords,
+                        const LLVMValueRef *offsets,
                         const struct lp_derivatives *derivs,
                         LLVMValueRef lod_bias, /* optional */
                         LLVMValueRef explicit_lod, /* optional */
@@ -555,6 +556,14 @@ lp_build_emit_fetch(
    unsigned src_op,
    const unsigned chan_index);
 
+
+LLVMValueRef
+lp_build_emit_fetch_texoffset(
+   struct lp_build_tgsi_context *bld_base,
+   const struct tgsi_full_instruction *inst,
+   unsigned tex_off_op,
+   const unsigned chan_index);
+
 boolean
 lp_build_tgsi_llvm(
    struct lp_build_tgsi_context * bld_base,