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:
parent
daff597940
commit
7d39ef49bd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue