svga: Fix zslice index to svga_texture_copy_handle_resource()
authorCharmaine Lee <charmainel@vmware.com>
Tue, 4 Apr 2017 19:14:54 +0000 (13:14 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Apr 2017 19:46:44 +0000 (13:46 -0600)
commit35a748e79c2fef090ea02404247f1061b8db34cc
tree08152d841b9ab24f8bbd99c928aa76faefc12b4b
parent5637a497a3d86ff0bff793a1ecc706239cfe6a6f
svga: Fix zslice index to svga_texture_copy_handle_resource()

The zslice index to svga_texture_copy_handle_resource() is not adjusted
and should be a signed integer.

This patch fixes piglit tests for non-vgpu10 including
   spec@arb_framebuffer_object@fbo-generatemipmap-3d
   spec@glsl-1.20@execution@tex-miplevel-selection gl2:texture* 3d

Tested with MTT piglit and glretrace
src/gallium/drivers/svga/svga_surface.c