From e1f603b0924aaadd70c6c116b123a78ca03053ce Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Sun, 16 Apr 2023 21:19:35 +0200 Subject: [PATCH] gallivm: Expose lp_build_sample_soa_code Reviewed-by: Dave Airlie Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_sample.h | 22 +++++++++++++++++++ .../auxiliary/gallivm/lp_bld_sample_soa.c | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h index b710853de4b..4868c178995 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.h @@ -714,6 +714,28 @@ lp_build_sample_offset(struct lp_build_context *bld, LLVMValueRef *out_j); +void +lp_build_sample_soa_code(struct gallivm_state *gallivm, + const struct lp_static_texture_state *static_texture_state, + const struct lp_static_sampler_state *static_sampler_state, + struct lp_sampler_dynamic_state *dynamic_state, + struct lp_type type, + unsigned sample_key, + unsigned texture_index, + unsigned sampler_index, + LLVMTypeRef resources_type, + LLVMValueRef resources_ptr, + LLVMTypeRef thread_data_type, + LLVMValueRef thread_data_ptr, + const LLVMValueRef *coords, + const LLVMValueRef *offsets, + const struct lp_derivatives *derivs, /* optional */ + LLVMValueRef lod, /* optional */ + LLVMValueRef ms_index, /* optional */ + LLVMValueRef aniso_filter_table, + LLVMValueRef texel_out[4]); + + void lp_build_sample_soa(const struct lp_static_texture_state *static_texture_state, const struct lp_static_sampler_state *static_sampler_state, diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c index 1701913daf1..8d0c91aeba1 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c @@ -3285,7 +3285,7 @@ lp_build_texel_type(struct lp_type texel_type, * \param sample_key * \param derivs partial derivatives of (s,t,r,q) with respect to x and y */ -static void +void lp_build_sample_soa_code(struct gallivm_state *gallivm, const struct lp_static_texture_state *static_texture_state, const struct lp_static_sampler_state *static_sampler_state,