zink: set subdata hook as PIPE_MAP_ONCE

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11401>
This commit is contained in:
Mike Blumenkrantz
2021-05-07 19:08:30 -04:00
committed by Marge Bot
parent 3e66808a82
commit 0cfcc0602b
+1 -1
View File
@@ -1204,7 +1204,7 @@ zink_buffer_subdata(struct pipe_context *ctx, struct pipe_resource *buffer,
struct pipe_box box;
uint8_t *map = NULL;
usage |= PIPE_MAP_WRITE;
usage |= PIPE_MAP_WRITE | PIPE_MAP_ONCE;
if (!(usage & PIPE_MAP_DIRECTLY))
usage |= PIPE_MAP_DISCARD_RANGE;