mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
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:
parent
27d405dc2f
commit
95bfb75688
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue