svga: force direct map for transfering multiple slices
authorCharmaine Lee <charmainel@vmware.com>
Thu, 23 Jun 2016 16:21:11 +0000 (09:21 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 28 Jun 2016 19:43:23 +0000 (13:43 -0600)
commit6397c12f32431616555c8de29ee40aac51e69401
treee5cd035cd970fd42837652f9a376f1dc25ad3fd7
parentd65c4e22a84b3f305e64932e167e998dcf44f5be
svga: force direct map for transfering multiple slices

With commit fb9fe35, we start using transfer_inline_write
for memcpy of TexSubImage. But SurfaceDMA command does not work
well with texture array. This patch forces direct map when
transfering multiple slices of a texture array.

Fixes piglit regression "texelFetch fs sampler1DArray"

Tested with MTT piglit, glretrace, conform.

Reviewed-by: Sinclair Yeh <syeh@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c