mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 19:50:20 +01:00
svga: mark the texture dirty for write transfer map only
Instead of unconditionally mark the texture subresource dirty at transfer map, we'll set the dirty bit for write transfer only. Tested with lightsmark2008 and glretrace. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
676931640f
commit
686cd3c606
1 changed files with 4 additions and 2 deletions
|
|
@ -485,8 +485,10 @@ svga_texture_transfer_map(struct pipe_context *pipe,
|
|||
}
|
||||
}
|
||||
}
|
||||
/* mark this texture level as dirty */
|
||||
svga_set_texture_dirty(tex, st->slice, transfer->level);
|
||||
if (transfer->usage & PIPE_TRANSFER_WRITE) {
|
||||
/* mark this texture level as dirty */
|
||||
svga_set_texture_dirty(tex, st->slice, transfer->level);
|
||||
}
|
||||
}
|
||||
|
||||
st->use_direct_map = use_direct_map;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue