[Mesa-dev] st/mesa: fix mipmap generation bug
brian.e.paul at gmail.com
Thu Dec 30 07:01:24 PST 2010
Sure, go ahead and cherry-pick it. I think it's on the 7.10 branch already.
On Mon, Dec 27, 2010 at 7:38 PM, Marek Olšák <maraeo at gmail.com> wrote:
> Hi Brian,
> can this patch go to 7.9? I think it's a useful fix that should be there.
>>Author: Brian Paul <brianp at vmware.com>
>>Date: Mon Dec 6 11:01:19 2010 -0700
>> st/mesa: fix mipmap generation bug
>> In st_finalize_texture() we were looking at the st_texture_object::
>> lastLevel field instead of the pipe_resource::last_level field to
>> determine which resource to store the mipmap in.
>> Then, in st_generate_mipmap() we need to call st_finalize_texture() to
>> make sure the destination resource is properly allocated.
>> These changes fix the broken piglit fbo-generatemipmap-formats test.
> Best regards
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
More information about the mesa-dev