diff options
author | Brian Paul <[email protected]> | 2013-11-14 13:33:52 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-11-15 10:23:48 -0700 |
commit | 3969330b47c5b7f7843f356db0a10962553339a6 (patch) | |
tree | 1e6f7d876ea3620e55a414088bc0429cad542c60 /src | |
parent | 79984b9928d4444665ce617a1e4551e53d415bd4 (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" <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 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); } |