summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-25 15:15:31 -0600
committerBrian Paul <[email protected]>2016-08-26 14:20:18 -0600
commit09d2780b3979c23e2bddc9b2754d6e93009f4428 (patch)
treed27ec39a7e049d3ff771b92b730b2370a8f7fdb4 /src/gallium/drivers/svga
parent4a525126668b4bcfa11919d327bb04c4e618d51d (diff)
svga: move some assignments in svga_texture_transfer_map()
Put near other assignments to the svga_transfer variable. Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_resource_texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c
index 243b94215c6..9104b0ac751 100644
--- 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
*/