radv/meta: add srgb conversion to end of resolve shader.
authorDave Airlie <airlied@redhat.com>
Thu, 20 Apr 2017 03:42:26 +0000 (04:42 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 7 May 2017 22:41:38 +0000 (23:41 +0100)
commit588185eb6b76bf31fedbfcbf32fc3b2035b2d541
tree8a20108054710b852a2861f28177a1aa7b52e993
parentdab6a2dfd9cab05e7e9b57373546516bf153f080
radv/meta: add srgb conversion to end of resolve shader.

If we are resolving into an srgb dest, we need to convert
to linear so the store does the conversion back.

This should fix some wierdness seen when we subresolves
hit the compute path.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_resolve_cs.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/vk_format.h