radv: Only convert linear->srgb in compute resolves.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 5 Aug 2017 23:56:17 +0000 (01:56 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 6 Aug 2017 14:07:09 +0000 (16:07 +0200)
commit15e5a7a6832bba011564bfa2045fba9e833eede2
treef2203fc031bdfe2d0a599002b6ea68c8bf258100
parent8286c3a49f03dc219e57d4a9ec27a4d840c5f603
radv: Only convert linear->srgb in compute resolves.

It justs works with the fragment shader resolve, so no need to do
a custom conversion. In fact with SRGB dest, it actually gives
wrong results.

Fixes: 69136f4e633 "radv/meta: add resolve pass using fragment/vertex shaders"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta.c
src/amd/vulkan/radv_meta.h
src/amd/vulkan/radv_meta_resolve_cs.c
src/amd/vulkan/radv_meta_resolve_fs.c
src/amd/vulkan/radv_private.h