mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
ce6d43548b
commit
de2da3dadf
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue