mesa: Add a new function for getting the nonconst sampler array index
[mesa.git] / src / mesa / program / prog_opt_constant_fold.c
index e2418b554512373d61457970baef28bc31e3e1d0..3811c0d8aa6b40da4a9a3d60d2b30eebddd365d8 100644 (file)
@@ -204,10 +204,6 @@ _mesa_constant_fold(struct gl_program *prog)
            get_value(prog, &inst->SrcReg[0], a);
            get_value(prog, &inst->SrcReg[1], b);
 
-           /* It seems like a loop could be used here, but we cleverly put
-            * DP2A between DP2 and DP3.  Subtracting DP2 (or similar) from
-            * the opcode results in various failures of the loop control.
-            */
            result = (a[0] * b[0]) + (a[1] * b[1]);
 
            if (inst->Opcode >= OPCODE_DP3)