gallivm: Expose lp_build_sample_soa_code

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22828>
This commit is contained in:
Konstantin Seurer 2023-04-16 21:19:35 +02:00 committed by Marge Bot
parent e11e8289dd
commit e1f603b092
2 changed files with 23 additions and 1 deletions

View file

@ -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,

View file

@ -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,