svga: mark dest image as defined in svga_surface_copy()
authorBrian Paul <brianp@vmware.com>
Thu, 14 Nov 2013 20:33:52 +0000 (13:33 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Nov 2013 17:23:48 +0000 (10:23 -0700)
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.

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/svga/svga_pipe_blit.c

index ff1017c75b3028b5acbced74ddd32a70726b831f..dbb9f4b517292983c220f47d6d5ce3c1924cc8c0 100644 (file)
@@ -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);
 }