OSDN Git Service

svga: simplify/fix 1D/2D array resource copies
authorBrian Paul <brianp@vmware.com>
Wed, 6 Jul 2016 23:24:18 +0000 (17:24 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Jul 2016 18:53:21 +0000 (12:53 -0600)
commit74163475b0834a6151abf0d3c5e947aa026584b8
tree208e92eaba191f4c00b9d94b5727be9f81ae58c2
parent0e23f370c99efa3e14ee0ffd0b04fa887f2bc2a5
svga: simplify/fix 1D/2D array resource copies

Fixes the one of the piglit arb_copy_image-targets tests for 1D arrays.
Previously, we were applying the 1D array z/face adjustment twice.

Also simplify the copy_region_vgpu10() function.  It never has to copy
multiple array layers/slices.  The Mesa code for glCopyImageSubData does
the loop over slices/faces.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_blit.c