After we blit/copy to a dest texture image we need to mark it as being defined. This fixes broken mipmap generation for quite a few texture formats. Mipgen involves making texture views and svga_texture_view_surface() skips texture images that are undefined. --- src/gallium/drivers/svga/svga_pipe_blit.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index ff1017c..dbb9f4b 100644 --- a/src/gallium/drivers/svga/svga_pipe_blit.c +++ b/src/gallium/drivers/svga/svga_pipe_blit.c @@ -148,6 +148,8 @@ static void svga_surface_copy(struct pipe_context *pipe, #endif + /* Mark the destination image as being defined */ + svga_define_texture_level(dtex, dst_face, dst_level); } -- 1.7.10.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev