From: Mike Blumenkrantz Date: Fri, 30 Jul 2021 13:22:09 +0000 (-0400) Subject: zink: remove PIPE_MAP_ONCE from subdata X-Git-Tag: upstream/22.3.5~19134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d39ef49bd751463f90a0d269812554ab3c1636e;p=platform%2Fupstream%2Fmesa.git 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 Part-of: --- diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 8436f07..3bef1b2 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -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;