svga: refactor svga_texture_transfer_map/unmap functions
authorCharmaine Lee <charmainel@vmware.com>
Fri, 2 Sep 2016 00:45:28 +0000 (17:45 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:24:12 +0000 (10:24 -0600)
commita9c4a861d5d6bb88c9e6c375403c3985187fd453
tree746f3190460b7f6972d3937f56c32b5e83654aa0
parentc8ef82d65a2c563c1dbafb2a252aca230ab9d1c7
svga: refactor svga_texture_transfer_map/unmap functions

Split the functions into separate functions for dma and direct map to make
the code more readable.

Tested with MTT piglit, glretrace, viewperf, conform, various OpenGL apps

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c