radv: Fix SRGB compute copies.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 20 May 2018 23:26:46 +0000 (01:26 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 21 May 2018 08:33:41 +0000 (10:33 +0200)
commita63a0960e3ebf049e593f51ce1e02dc84254f9c4
tree587276d8d3bf24452631e772b67055bb7c2a6937
parent63525ba730e3d8a466d7f6382a2b91f4c75dd171
radv: Fix SRGB compute copies.

SRGB stores are broken. We had compensation code in the
resolve path but none in the copy path. Since we don't
want any conversion and it does not matter for DCC,
just make everything UNORM instead.

This happened to cause wrong colors for the PRIME path, as
that uses image->buffer copies which always use the compute
path.

CC: 18.0 18.1 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106587
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_copy.c
src/amd/vulkan/vk_format.h