svga: Fix imported surface view creation
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 30 May 2017 13:51:06 +0000 (15:51 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 17:43:54 +0000 (19:43 +0200)
commitdf4d6003dc75395f8ded57fdf59046f0d008eea3
tree51a33d450ef26838b0352defdce6bf1938a4dc08
parentc2138a066cf75491e45df53cd799feb23027dae0
svga: Fix imported surface view creation

When deciding to create a view with or without an alpha channel we need to
look at the SVGA3D format and not the PIPE format.

This fixes the glx-tfp piglit test for dri3/xa.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/drivers/svga/svga_resource_texture.h
src/gallium/drivers/svga/svga_shader.c
src/gallium/drivers/svga/svga_state_sampler.c