struct gallivm_state *gallivm,
LLVMValueRef context_ptr,
unsigned texture_unit,
+ LLVMValueRef texture_unit_offset,
unsigned member_index,
const char *member_name,
boolean emit_load)
lp_llvm_texture_##_name( const struct lp_sampler_dynamic_state *base, \
struct gallivm_state *gallivm, \
LLVMValueRef context_ptr, \
- unsigned texture_unit) \
+ unsigned texture_unit, \
+ LLVMValueRef texture_unit_offset) \
{ \
return lp_llvm_texture_member(base, gallivm, context_ptr, \
- texture_unit, _index, #_name, _emit_load ); \
+ texture_unit, texture_unit_offset, \
+ _index, #_name, _emit_load ); \
}
struct gallivm_state *gallivm,
LLVMValueRef context_ptr,
unsigned image_unit,
+ LLVMValueRef image_unit_offset,
unsigned member_index,
const char *member_name,
boolean emit_load)
#define LP_LLVM_IMAGE_MEMBER(_name, _index, _emit_load) \
static LLVMValueRef \
lp_llvm_image_##_name( const struct lp_sampler_dynamic_state *base, \
- struct gallivm_state *gallivm, \
- LLVMValueRef context_ptr, \
- unsigned image_unit) \
+ struct gallivm_state *gallivm, \
+ LLVMValueRef context_ptr, \
+ unsigned image_unit, LLVMValueRef image_unit_offset) \
{ \
return lp_llvm_image_member(base, gallivm, context_ptr, \
- image_unit, _index, #_name, _emit_load ); \
+ image_unit, image_unit_offset, \
+ _index, #_name, _emit_load ); \
}