svga: Set alpha to 1 for non-alpha views
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 26 Apr 2017 13:00:38 +0000 (06:00 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 17:43:54 +0000 (19:43 +0200)
commitc2138a066cf75491e45df53cd799feb23027dae0
tree2ec5cb8538cbdc1ff2dda055033bd5b713de019e
parent1887faf73b379f28eb6c73bdb790dbcc97213b3a
svga: Set alpha to 1 for non-alpha views

Gallium RGB textures may be backed by imported ARGB svga3d surfaces. In those
and similar cases we need to set the alpha value to 1 when sampling.

Fixes piglit glx::glx-tfp

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