diff options
author | Brian Paul <[email protected]> | 2016-08-25 16:15:23 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-26 14:20:19 -0600 |
commit | c6e89fa2153fcd32dd606fee3c5c812e12daa694 (patch) | |
tree | b7c00f1276bca16c3883e4dc85e2e35dea766ba8 /src | |
parent | fe5a2704ecd447068c6b75bf78f12630219d3117 (diff) |
svga: minor code simplification in svga_texture_transfer_unmap()
Use the tex variable instead of using svga_texture() again.
Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index aff6fb1781d..1f1a76bb224 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -692,8 +692,7 @@ svga_texture_transfer_unmap(struct pipe_context *pipe, svga_transfer_dma(svga, st, SVGA3D_WRITE_HOST_VRAM, flags); } else if (transfer->usage & PIPE_TRANSFER_WRITE) { - struct svga_winsys_surface *surf = - svga_texture(transfer->resource)->handle; + struct svga_winsys_surface *surf = tex->handle; SVGA3dBox box; enum pipe_error ret; unsigned nlayers = 1; |