gallivm: (trivial) remove duplicated code block (including comment)
authorRoland Scheidegger <sroland@vmware.com>
Wed, 12 Jun 2013 22:40:24 +0000 (00:40 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 12 Jun 2013 22:41:43 +0000 (00:41 +0200)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 066f64aaace2cc147363c15c162caca4682dee77..0bbc408bd467bc9f3f63103caa2116e2696179d7 100644 (file)
@@ -1784,13 +1784,6 @@ emit_sample(struct lp_build_tgsi_soa_context *bld,
       return;
    }
 
-   /*
-    * unlike old-style tex opcodes the texture/sampler indices
-    * always come from src1 and src2 respectively.
-    */
-   texture_unit = inst->Src[1].Register.Index;
-   sampler_unit = inst->Src[2].Register.Index;
-
    if (modifier == LP_BLD_TEX_MODIFIER_LOD_BIAS) {
       lod_bias = lp_build_emit_fetch( &bld->bld_base, inst, 3, 0 );
       explicit_lod = NULL;