>> const GLuint *inputMapping; >> @@ -4379,22 +4428,34 @@ translate_src(struct st_translate *t, const >> st_src_reg *src_reg) >> >> static struct tgsi_texture_offset >> translate_tex_offset(struct st_translate *t, >> - const struct tgsi_texture_offset *in_offset) >> + const st_src_reg *in_offset, int idx) > > idx does not appear to get used... did you mean to use it, or > left-over code change?
Oh indeed that was for when I had array support here, which I ripped out for the lowering pass. >> src[num_src++] = t->samplers[inst->sampler]; >> for (i = 0; i < inst->tex_offset_num_offset; i++) { >> - texoffsets[i] = translate_tex_offset(t, &inst->tex_offsets[i]); >> + texoffsets[i] = translate_tex_offset(t, &inst->tex_offsets[i], i); > > and so this new parameter wouldn't be needed either. Good point. Dave. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev