radv: Handle VK_ATTACHMENT_UNUSED in color attachments.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 23 Jul 2017 19:59:01 +0000 (21:59 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 23 Jul 2017 23:50:52 +0000 (01:50 +0200)
commitea08a296fe226f5e67366b4db420c2322f38774c
treea52007d0342ab27b86a54b565be7dd545b36a363
parentbfe8134472f90a1790ca37ed2aaad420efe5dff5
radv: Handle VK_ATTACHMENT_UNUSED in color attachments.

This just sets them to INVALID COLOR,  instead of shifting the
attachments together.

This also fixes a number of cases where we use it first and only
then check if it is VK_ATTACHMENT_UNUSED.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_meta_clear.c
src/amd/vulkan/radv_meta_resolve.c
src/amd/vulkan/radv_meta_resolve_cs.c
src/amd/vulkan/radv_meta_resolve_fs.c
src/amd/vulkan/radv_pipeline.c