mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
svga: minor code simplification in svga_texture_transfer_unmap()
Use the tex variable instead of using svga_texture() again. Reviewed-by: Neha Bhende <bhenden@vmware.com>
This commit is contained in:
parent
fe5a2704ec
commit
c6e89fa215
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue