anv: Use TRANSFER_SRC_OPTIMAL for depth/stencil MSAA resolves
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 6 Jan 2020 17:28:59 +0000 (11:28 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 17:42:36 +0000 (17:42 +0000)
commit769d6ba2009a366e0e49f399497a59876dd89286
treed6c05ac3088f9637a3cfe19e62b8551c1541f6bc
parent71c0f9e76dcac32067ba28b27a91ccf124b88111
anv: Use TRANSFER_SRC_OPTIMAL for depth/stencil MSAA resolves

As of 52ad1712ed62, TRANSFER_SRC_OPTIMAL and SHADER_READ_ONLY_OPTIMAL
are now identical for depth buffers so there's no reason why we need to
use the "wrong" layout.  Technically, according to Vulkan, blits and
MSAA resolves are transfer ops so we should use the transfer layout now
that we can.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2605>
src/intel/vulkan/genX_cmd_buffer.c