projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a52512
)
svga: move some assignments in svga_texture_transfer_map()
author
Brian Paul
<brianp@vmware.com>
Thu, 25 Aug 2016 21:15:31 +0000
(15:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2016 20:20:18 +0000
(14:20 -0600)
Put near other assignments to the svga_transfer variable.
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_resource_texture.c
b/src/gallium/drivers/svga/svga_resource_texture.c
index 243b94215c69ac02d27e32fb7ced7eca9144131a..9104b0ac751a9cb2d1ad1446d057c3deb85f30f5 100644
(file)
--- a/
src/gallium/drivers/svga/svga_resource_texture.c
+++ b/
src/gallium/drivers/svga/svga_resource_texture.c
@@
-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
*/