svga: Always set the alpha value to 1 when sampling using an XRGB view
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 30 May 2017 13:54:38 +0000 (15:54 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 17:43:54 +0000 (19:43 +0200)
commit2c4ec3f93fcab3fddcbe132200b210e7def1facc
treed40f3ddb09ecacb7edc0ac105f5c4aa5fecca8ad
parentdf4d6003dc75395f8ded57fdf59046f0d008eea3
svga: Always set the alpha value to 1 when sampling using an XRGB view

If the XRGB view is sampling from an ARGB svga format, change
PIPE_SWIZZLE_W to PIPE_SWIZZLE_1 for all channels.
Previously we unconditionally set PIPE_SWIZZLE_1 on the alpha channel which
could be both insufficient and incorrect.

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