svga: fix texture array update regression
authorCharmaine Lee <charmainel@vmware.com>
Tue, 21 Jun 2016 17:12:22 +0000 (10:12 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Jun 2016 13:31:20 +0000 (07:31 -0600)
commit2aa9ff0cda1f6ad97c83d5583fab7a84efabe19e
treed1646cfb617f1884268b9dc041e114c2f691b3c6
parentd4a77254cb491c8e4a90ecefb0c9ae430bb0278a
svga: fix texture array update regression

With commit fb9fe35, we start using transfer_inline_write
for memcpy TexSubImage path, but that triggers a regression with
texture array in the svga driver.

With this patch, the direct map code will update the texture array
correctly.

Fixes VMware bug 1679293.

Tested with MTT piglit, glretrace, conform.

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