Mesa (master): svga: mark dest image as defined in svga_surface_copy()

Brian Paul brianp at kemper.freedesktop.org
Fri Nov 15 17:27:38 UTC 2013


Module: Mesa
Branch: master
Commit: 3969330b47c5b7f7843f356db0a10962553339a6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3969330b47c5b7f7843f356db0a10962553339a6

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Nov 14 13:33:52 2013 -0700

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" <mesa-stable at lists.freedesktop.org>

Reviewed-by: José Fonseca <jfonseca at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 src/gallium/drivers/svga/svga_pipe_blit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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);
 }
 
 




More information about the mesa-commit mailing list