zink: add vertex shader pipeline bit for generated barrier construction

if the vertex buffer resource has writes, it needs this bit too

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14691>
This commit is contained in:
Mike Blumenkrantz 2022-01-18 11:17:12 -05:00 committed by Marge Bot
parent 27d405dc2f
commit 95bfb75688

View file

@ -396,6 +396,8 @@ update_barriers(struct zink_context *ctx, bool is_compute)
access |= VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT;
pipeline |= VK_PIPELINE_STAGE_VERTEX_INPUT_BIT;
bind_count -= util_bitcount(res->vbo_bind_mask);
if (res->write_bind_count[is_compute])
pipeline |= VK_PIPELINE_STAGE_VERTEX_SHADER_BIT;
}
bind_count -= res->so_bind_count;
}