svga: Use comparison between svga texture types to use PredCopyRegion command
authorNeha Bhende <bhenden@vmware.com>
Thu, 1 Sep 2016 16:43:54 +0000 (09:43 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:08:59 +0000 (10:08 -0600)
commitb7bee2505239ef1a14fecde5b73ffdab67694aa2
tree459be8a56427fcef470f162bf8da0a8dd85839e2
parentb9f333cc8167594fa2c73a763a4e70ddf98e885f
svga: Use comparison between svga texture types to use PredCopyRegion command

PredCopyRegion support copy between same type of textures.
Instead of comparing src and dst pipe texture type, compare svga texture
type which can avoid some software fallback.
for example, it avoids a software blit with the Redway3D Aston demo.

Tested piglit tests on VGPU9 and  VGPU10 on GL/DX11Renderer, Redway3D Aston demo

v2: some nit pick suggested by Charmaine.

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