[Mesa-dev] st/mesa: fix mipmap generation bug
Marek Olšák
maraeo at gmail.com
Mon Dec 27 18:38:24 PST 2010
Hi Brian,
can this patch go to 7.9? I think it's a useful fix that should be there.
>commit cae2bb76c1147d48f75ddd7a058a48d11e72ba03
>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
Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101228/1f58e656/attachment.htm>
More information about the mesa-dev
mailing list