gallivm: implement better control of per-quad/per-element/scalar lod
[mesa.git] / src / gallium / auxiliary / draw / draw_llvm_sample.c
index 97b025565c3106c209bb6fbc5e626912af0404f9..a6341fae3cdc36daf36bedb99b758a9dd8d67369 100644 (file)
@@ -238,7 +238,7 @@ draw_llvm_sampler_soa_emit_fetch_texel(const struct lp_build_sampler_soa *base,
                                        const struct lp_derivatives *derivs,
                                        LLVMValueRef lod_bias, /* optional */
                                        LLVMValueRef explicit_lod, /* optional */
-                                       boolean scalar_lod,
+                                       enum lp_sampler_lod_property lod_property,
                                        LLVMValueRef *texel)
 {
    struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base;
@@ -257,7 +257,7 @@ draw_llvm_sampler_soa_emit_fetch_texel(const struct lp_build_sampler_soa *base,
                        coords,
                        offsets,
                        derivs,
-                       lod_bias, explicit_lod, scalar_lod,
+                       lod_bias, explicit_lod, lod_property,
                        texel);
 }
 
@@ -272,7 +272,7 @@ draw_llvm_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
                                       unsigned texture_unit,
                                       unsigned target,
                                       boolean is_sviewinfo,
-                                      boolean scalar_lod,
+                                      enum lp_sampler_lod_property lod_property,
                                       LLVMValueRef explicit_lod, /* optional */
                                       LLVMValueRef *sizes_out)
 {
@@ -287,7 +287,7 @@ draw_llvm_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
                            texture_unit,
                            target,
                            is_sviewinfo,
-                           scalar_lod,
+                           lod_property,
                            explicit_lod,
                            sizes_out);
 }