gallivm: use texture target from shader instead of static state for size query
[mesa.git] / src / gallium / drivers / llvmpipe / lp_tex_sample.c
index 2aec6ea86979fdcfb0bf0aa010dccf56b54a1974..5402de407d567cfbf18bc6d93a3d2f82eef79829 100644 (file)
@@ -280,6 +280,7 @@ lp_llvm_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
                                     struct gallivm_state *gallivm,
                                     struct lp_type type,
                                     unsigned texture_unit,
+                                    unsigned target,
                                     boolean need_nr_mips,
                                     boolean scalar_lod,
                                     LLVMValueRef explicit_lod, /* optional */
@@ -294,6 +295,7 @@ lp_llvm_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
                            &sampler->dynamic_state.base,
                            type,
                            texture_unit,
+                           target,
                            need_nr_mips,
                            scalar_lod,
                            explicit_lod,