[Mesa-dev] [PATCH] sp_tex_sample: Fix stupid copy/paste error.
Brian Paul
brianp at vmware.com
Tue Jul 24 09:06:05 PDT 2012
On 07/24/2012 12:27 AM, Olivier Galibert wrote:
> diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
> index f215b90..0aeb8e2 100644
> --- a/src/gallium/drivers/softpipe/sp_tex_sample.c
> +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
> @@ -1950,8 +1950,8 @@ mip_filter_linear_2d_linear_repeat_POT(
> float rgbax[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
> int c;
>
> - img_filter_2d_linear_repeat_POT(tgsi_sampler, s[j], t[j], p[j], level0, samp->faces[j], tgsi_sampler_lod_bias,&rgbax[0][j]);
> - img_filter_2d_linear_repeat_POT(tgsi_sampler, s[j], t[j], p[j], level0+1, samp->faces[j], tgsi_sampler_lod_bias,&rgbax[0][j]);
> + img_filter_2d_linear_repeat_POT(tgsi_sampler, s[j], t[j], p[j], level0, samp->faces[j], tgsi_sampler_lod_bias,&rgbax[0][0]);
> + img_filter_2d_linear_repeat_POT(tgsi_sampler, s[j], t[j], p[j], level0+1, samp->faces[j], tgsi_sampler_lod_bias,&rgbax[0][1]);
>
> for (c = 0; c< TGSI_NUM_CHANNELS; c++)
> rgba[c][j] = lerp(levelBlend, rgbax[c][0], rgbax[c][1]);
Reviewed-by: Brian Paul <brianp at vmware.com>
Does this fix bug 52369? Do you need me to commit this for you?
-Brian
More information about the mesa-dev
mailing list