radv: Use the correct channel for alpha in resolve srgb conversion.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 5 Aug 2017 23:58:21 +0000 (01:58 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 6 Aug 2017 14:07:13 +0000 (16:07 +0200)
commitacba3a3151dbbba0ab834e062e0feb12af4873de
tree1d8706c8b204892b8824b62a7a34c62e5a3dc2f5
parent15e5a7a6832bba011564bfa2045fba9e833eede2
radv: Use the correct channel for alpha in resolve srgb conversion.

The argument here is a bitmask, so the old code selected .xy, which
got silently truncated to .x when constructing the vec4 from components,
instead of using .w.

Fixes: 588185eb6b7 "radv/meta: add srgb conversion to end of resolve shader."
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_resolve_cs.c