From: Jason Ekstrand Date: Wed, 16 Nov 2016 19:20:50 +0000 (-0800) Subject: anv/cmd_buffer: Fix pipeline barriers for input attachments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57174d60421e9e63569335a269cd806703f5da5d;p=mesa.git anv/cmd_buffer: Fix pipeline barriers for input attachments We were using VK_IMAGE_ACCESS_COLOR_ATTACHMENT_READ_BIT to detect an input attachment read. We should use VK_IMAGE_ACCESS_INPUT_ATTACHMENT_READ_BIT instead. Reviewed-by: Jordan Justen --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 44610f89ba1..5e4979fbb6d 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -762,7 +762,7 @@ void genX(CmdPipelineBarrier)( pipe_bits |= ANV_PIPE_TEXTURE_CACHE_INVALIDATE_BIT; break; case VK_ACCESS_SHADER_READ_BIT: - case VK_ACCESS_COLOR_ATTACHMENT_READ_BIT: + case VK_ACCESS_INPUT_ATTACHMENT_READ_BIT: case VK_ACCESS_TRANSFER_READ_BIT: pipe_bits |= ANV_PIPE_TEXTURE_CACHE_INVALIDATE_BIT; break;