radv: make sure to flush input attachments correctly.
authorDave Airlie <airlied@redhat.com>
Wed, 16 Nov 2016 23:41:29 +0000 (23:41 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 20 Nov 2016 22:57:31 +0000 (08:57 +1000)
This fixes 9 of the
dEQP-VK.renderpass.attachment_allocation.input_output.*
tests.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 690c739c2aba8c4a3bf0806f64249891d6c34945..9517e7a13dab345f3a389cd47c8dda63bbb324cf 100644 (file)
@@ -2291,6 +2291,7 @@ void radv_CmdPipelineBarrier(
                        break;
                case VK_ACCESS_COLOR_ATTACHMENT_READ_BIT:
                case VK_ACCESS_TRANSFER_READ_BIT:
+               case VK_ACCESS_INPUT_ATTACHMENT_READ_BIT:
                        flush_bits |= RADV_CMD_FLUSH_AND_INV_FRAMEBUFFER | RADV_CMD_FLAG_INV_GLOBAL_L2;
                default:
                        break;