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:
committed by
Brian Paul
parent
676931640f
commit
686cd3c606
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user