gallivm: (trivial) fix the logic deciding if function call should be used...
authorRoland Scheidegger <sroland@vmware.com>
Wed, 1 Apr 2015 11:25:56 +0000 (13:25 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 1 Apr 2015 11:26:19 +0000 (13:26 +0200)
Copy and paste bug with the img filter decision. Since there's only 2 different
filters anyway just drop this bit.

src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c

index 378c562bb9fe43067b6c88618fef7945b8b2f9f8..1a60ca9d3cb7f5185539567d36b72037a7cafbb5 100644 (file)
@@ -3330,9 +3330,7 @@ lp_build_sample_soa(const struct lp_static_texture_state *static_texture_state,
          op_type != LP_SAMPLER_OP_TEXTURE ||
            ((static_sampler_state->min_mip_filter == PIPE_TEX_MIPFILTER_NONE ||
              static_texture_state->level_zero_only == TRUE) &&
-            static_sampler_state->min_img_filter == static_sampler_state->mag_img_filter &&
-            (static_sampler_state->min_img_filter == PIPE_TEX_FILTER_NEAREST ||
-             static_sampler_state->min_img_filter == PIPE_TEX_FILTER_NEAREST));
+            static_sampler_state->min_img_filter == static_sampler_state->mag_img_filter);
 
       use_tex_func = format_desc && !(simple_format && simple_tex);
    }