projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe5a270
)
svga: minor code simplification in svga_texture_transfer_unmap()
author
Brian Paul
<brianp@vmware.com>
Thu, 25 Aug 2016 22:15:23 +0000
(16:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2016 20:20:19 +0000
(14:20 -0600)
Use the tex variable instead of using svga_texture() again.
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 aff6fb1781dc996a9e648028f694423f9821aea5..1f1a76bb224f0ceb8a66be652703c8ef1c1f9dd7 100644
(file)
--- 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;