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:

committed by
Marge Bot

parent
80456abff7
commit
f7d6a75d6b
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user