summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-11-14 13:33:52 -0700
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 13:39:41 -0800
commite9f8b782788f4f1b27fb2015b1cf226660a17271 (patch)
tree27ce45b9316582a701737df09f493c6e657841aa /src
parentdfff838429060986a0813d74a87ca81b0406df95 (diff)
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@lists.freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> (cherry picked from commit 3969330b47c5b7f7843f356db0a10962553339a6)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_blit.c2
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 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);
}