mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
nvk/nvkmd: Always map read/write for internal maps
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31394>
This commit is contained in:
parent
10b3222522
commit
f63ec91b52
1 changed files with 5 additions and 1 deletions
|
|
@ -245,7 +245,11 @@ nvkmd_mem_map(struct nvkmd_mem *mem, struct vk_object_base *log_obj,
|
|||
|
||||
VkResult result = VK_SUCCESS;
|
||||
if (mem->map == NULL) {
|
||||
result = mem->ops->map(mem, log_obj, flags, NULL, &map);
|
||||
/* We always map read/write for internal maps since they're reference
|
||||
* counted and otherwise we don't have a good way to add permissions
|
||||
* after the fact.
|
||||
*/
|
||||
result = mem->ops->map(mem, log_obj, NVKMD_MEM_MAP_RDWR, NULL, &map);
|
||||
if (result == VK_SUCCESS)
|
||||
mem->map = map;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue