zink: delete unused buffer map conditional

this is now handled in the block above

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27827>
This commit is contained in:
Mike Blumenkrantz
2024-02-28 09:26:43 -05:00
committed by Marge Bot
parent 80456abff7
commit f7d6a75d6b

View File

@@ -2380,15 +2380,6 @@ overwrite:
usage &= ~PIPE_MAP_UNSYNCHRONIZED;
map_offset = trans->offset;
}
} else if ((usage & PIPE_MAP_UNSYNCHRONIZED) && !res->obj->host_visible) {
assert(!(usage & PIPE_MAP_READ));
trans->offset = box->x % screen->info.props.limits.minMemoryMapAlignment;
trans->staging_res = pipe_buffer_create(&screen->base, PIPE_BIND_LINEAR, PIPE_USAGE_STAGING, box->width + trans->offset);
if (!trans->staging_res)
goto fail;
struct zink_resource *staging_res = zink_resource(trans->staging_res);
res = staging_res;
map_offset = trans->offset;
}
if (!(usage & PIPE_MAP_UNSYNCHRONIZED)) {