[Mesa-dev] [PATCH 05/14] svga: move some assignments in svga_texture_transfer_map()

Brian Paul brianp at vmware.com
Fri Aug 26 15:27:09 UTC 2016


Put near other assignments to the svga_transfer variable.
---
 src/gallium/drivers/svga/svga_resource_texture.c | 8 ++++----
 1 file 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 243b942..9104b0a 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
     */
-- 
1.9.1



More information about the mesa-dev mailing list