From: Brian Paul Date: Thu, 14 Nov 2013 20:33:52 +0000 (-0700) Subject: svga: mark dest image as defined in svga_surface_copy() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3969330b47c5b7f7843f356db0a10962553339a6;p=mesa.git svga: mark dest image as defined in svga_surface_copy() 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" Reviewed-by: José Fonseca Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index ff1017c75b3..dbb9f4b5172 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); }