<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 23, 2018 at 4:05 AM Lionel Landwerlin <<a href="mailto:lionel.g.landwerlin@intel.com">lionel.g.landwerlin@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Alex!<br>
<br>
Reviewed-by: Lionel Landwerlin <<a href="mailto:lionel.g.landwerlin@intel.com" target="_blank">lionel.g.landwerlin@intel.com</a>><br>
<br>
On 23/07/18 09:51, Alex Smith wrote:<br>
> According to the spec, these should apply to all read/write access<br>
> types (so would be equivalent to specifying all other access types<br>
> individually). Currently, they were doing nothing.<br>
><br>
> v2: Handle VK_ACCESS_MEMORY_WRITE_BIT in dstAccessMask.<br>
><br>
> Signed-off-by: Alex Smith <<a href="mailto:asmith@feralinteractive.com" target="_blank">asmith@feralinteractive.com</a>><br>
> Cc: <a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank">mesa-stable@lists.freedesktop.org</a><br>
> ---<br>
>   src/intel/vulkan/anv_private.h | 9 +++++++++<br>
>   1 file changed, 9 insertions(+)<br>
><br>
> diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h<br>
> index cec2842792..1660fcbbc8 100644<br>
> --- a/src/intel/vulkan/anv_private.h<br>
> +++ b/src/intel/vulkan/anv_private.h<br>
> @@ -1731,6 +1731,9 @@ anv_pipe_flush_bits_for_access_flags(VkAccessFlags flags)<br>
>            pipe_bits |= ANV_PIPE_RENDER_TARGET_CACHE_FLUSH_BIT;<br>
>            pipe_bits |= ANV_PIPE_DEPTH_CACHE_FLUSH_BIT;<br>
>            break;<br>
> +      case VK_ACCESS_MEMORY_WRITE_BIT:<br>
> +         pipe_bits |= ANV_PIPE_FLUSH_BITS;<br>
> +         break;<br>
>         default:<br>
>            break; /* Nothing to do */<br>
>         }<br>
> @@ -1761,6 +1764,12 @@ anv_pipe_invalidate_bits_for_access_flags(VkAccessFlags flags)<br>
>         case VK_ACCESS_TRANSFER_READ_BIT:<br>
>            pipe_bits |= ANV_PIPE_TEXTURE_CACHE_INVALIDATE_BIT;<br>
>            break;<br>
> +      case VK_ACCESS_MEMORY_READ_BIT:<br>
> +         pipe_bits |= ANV_PIPE_INVALIDATE_BITS;<br>
> +         break;<br>
> +      case VK_ACCESS_MEMORY_WRITE_BIT:<br>
> +         pipe_bits |= ANV_PIPE_FLUSH_BITS;<br>
> +         break;<br>
>         default:<br>
>            break; /* Nothing to do */<br>
>         }<br>
<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>