mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
zink: flag db maps as unsynchronized
these otherwise can be created using the wrong slab Fixes:98c411a2a1("zink: add PERSISTENT for db buffer maps") Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25227> (cherry picked from commitb73ebc6bfc)
This commit is contained in:
parent
9a94bb19ed
commit
d5a1314114
2 changed files with 2 additions and 2 deletions
|
|
@ -1057,7 +1057,7 @@
|
|||
"description": "zink: flag db maps as unsynchronized",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "98c411a2a19156f4e9171469122acda4ae536e41"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1571,7 +1571,7 @@ zink_batch_descriptor_init(struct zink_screen *screen, struct zink_batch_state *
|
|||
if (!pres)
|
||||
return false;
|
||||
bs->dd.db = zink_resource(pres);
|
||||
bs->dd.db_map = pipe_buffer_map(&bs->ctx->base, pres, PIPE_MAP_READ | PIPE_MAP_WRITE | PIPE_MAP_PERSISTENT, &bs->dd.db_xfer);
|
||||
bs->dd.db_map = pipe_buffer_map(&bs->ctx->base, pres, PIPE_MAP_READ | PIPE_MAP_WRITE | PIPE_MAP_PERSISTENT | PIPE_MAP_THREAD_SAFE, &bs->dd.db_xfer);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue