mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
svga: move some assignments in svga_texture_transfer_map()
Put near other assignments to the svga_transfer variable. Reviewed-by: Neha Bhende <bhenden@vmware.com>
This commit is contained in:
parent
4a52512666
commit
09d2780b39
1 changed files with 4 additions and 4 deletions
|
|
@ -397,6 +397,10 @@ svga_texture_transfer_map(struct pipe_context *pipe,
|
|||
|
||||
st->base.stride = nblocksx*util_format_get_blocksize(texture->format);
|
||||
st->base.layer_stride = st->base.stride * nblocksy;
|
||||
st->use_direct_map = use_direct_map;
|
||||
|
||||
*ptransfer = &st->base;
|
||||
|
||||
|
||||
if (usage & PIPE_TRANSFER_WRITE) {
|
||||
/* record texture upload for HUD */
|
||||
|
|
@ -510,10 +514,6 @@ svga_texture_transfer_map(struct pipe_context *pipe,
|
|||
}
|
||||
}
|
||||
|
||||
st->use_direct_map = use_direct_map;
|
||||
|
||||
*ptransfer = &st->base;
|
||||
|
||||
/*
|
||||
* Begin mapping code
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue