zink: use MAP_ONCE for qbo readback

this implies that the buffer can be unmapped

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12090>
This commit is contained in:
Mike Blumenkrantz 2021-05-17 14:40:19 -04:00 committed by Marge Bot
parent ce6d43548b
commit de2da3dadf

View file

@ -428,7 +428,7 @@ get_query_result(struct pipe_context *pctx,
{
struct zink_screen *screen = zink_screen(pctx->screen);
struct zink_query *query = (struct zink_query *)q;
unsigned flags = PIPE_MAP_READ;
unsigned flags = PIPE_MAP_READ | PIPE_MAP_ONCE;
if (!wait)
flags |= PIPE_MAP_DONTBLOCK;