zink: fix assert for unsynchronized non-GENERAL image barriers
if this is already unsync then everything is fine
Fixes: 213874d42b ("zink: use unsynchronized cmdbuf for unsynchronized image GENERAL barriers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36576>
This commit is contained in:
committed by
Marge Bot
parent
b717240ffa
commit
c50ac33cd2
@@ -354,7 +354,7 @@ template <>
|
||||
struct update_unordered_access_and_get_cmdbuf<true> {
|
||||
static VkCommandBuffer apply(struct zink_context *ctx, struct zink_resource *res, bool usage_matches, bool is_write)
|
||||
{
|
||||
assert(!usage_matches);
|
||||
assert(!usage_matches || (res->obj->unordered_write && res->obj->unordered_read));
|
||||
res->obj->unordered_write = true;
|
||||
res->obj->unordered_read = true;
|
||||
ctx->bs->has_unsync = true;
|
||||
|
||||
Reference in New Issue
Block a user