mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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 3969330b47)
This commit is contained in:
parent
dfff838429
commit
e9f8b78278
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue