zink: remove PIPE_MAP_ONCE from subdata

subdata calls that happen once for a buffer are likely to happen again,
so just leave them mapped

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12410>
This commit is contained in:
Mike Blumenkrantz 2021-07-30 09:22:09 -04:00 committed by Marge Bot
parent daff597940
commit 7d39ef49bd
1 changed files with 1 additions and 1 deletions

View File

@ -1441,7 +1441,7 @@ zink_buffer_subdata(struct pipe_context *ctx, struct pipe_resource *buffer,
struct pipe_box box;
uint8_t *map = NULL;
usage |= PIPE_MAP_WRITE | PIPE_MAP_ONCE;
usage |= PIPE_MAP_WRITE;
if (!(usage & PIPE_MAP_DIRECTLY))
usage |= PIPE_MAP_DISCARD_RANGE;