radv: Allow fast clears with concurrent queue mask for some layouts.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 17 Mar 2019 02:18:29 +0000 (03:18 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 18 Mar 2019 09:10:55 +0000 (09:10 +0000)
commit8ebc7dcb59a69763cc369af7c723e40a3fd29f7f
tree222e432f119129bbafae7214503d02540648e65e
parentd5974aeeae3d505114a6aa6b51b0c45c17e1baec
radv: Allow fast clears with concurrent queue mask for some layouts.

For VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL and
VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL we do not care about
the queue mask because

1) using these is only allowed on the gfx queue
2) transitions for these are only allowed on the gfx queue.

This enables some fast clears for Doom that uses
VK_SHARING_MODE_CONCURRENT.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_image.c