radv: handle fragment shader srgb resolve pass better
authorDave Airlie <airlied@redhat.com>
Thu, 11 May 2017 00:05:58 +0000 (10:05 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 May 2017 00:36:06 +0000 (10:36 +1000)
commitfe6c407a33a96b9ae3f9701ee04fc5598b94e2e2
tree95794b8668e5262824bfd8c3c31bd99c930623f0
parent32f0dc3a2919f8d8ba01fab811b2d63e4c6823e8
radv: handle fragment shader srgb resolve pass better

Bas pointed out the fs key doesn't take srgb into account,
since there is just one srgb variant, just create a separate
pipeline for it. This also uses dest format to be more consistent
on when srgb matters.

Fixes: 69136f4e633 "radv/meta: add resolve pass using fragment/vertex shaders"
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_resolve_fs.c
src/amd/vulkan/radv_private.h