radv: always use view format when performing subpass resolves
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 28 May 2019 08:47:12 +0000 (10:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 May 2019 06:53:46 +0000 (08:53 +0200)
commit017170a7859ab1a5c82e8cb5991b2bbb83d70c10
tree1da4f21e67248d768925df8ec1c777f19877fb3b
parenteaeaad25f78a3a6676518f54cc4d30945efd3a59
radv: always use view format when performing subpass resolves

It makes sense to use the image view formats when resolving
inside subpasses, while we have to use the image formats for
normal resolves.

Original patch by Philip Rebohle.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110348
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta.h
src/amd/vulkan/radv_meta_resolve.c
src/amd/vulkan/radv_meta_resolve_cs.c