projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
426f6e4
)
turnip: Fix memory mapping.
author
Bas Nieuwenhuizen
<basni@chromium.org>
Thu, 20 Dec 2018 23:54:15 +0000
(
00:54
+0100)
committer
Chia-I Wu
<olvaffe@gmail.com>
Mon, 11 Mar 2019 17:01:41 +0000
(10:01 -0700)
src/freedreno/vulkan/tu_device.c
patch
|
blob
|
history
diff --git
a/src/freedreno/vulkan/tu_device.c
b/src/freedreno/vulkan/tu_device.c
index 4d676d9147af3303b4014f7a25479d0357637f55..b5a8a6f13bcb0ab992594ee393b2f0c3292aca61 100644
(file)
--- a/
src/freedreno/vulkan/tu_device.c
+++ b/
src/freedreno/vulkan/tu_device.c
@@
-124,6
+124,7
@@
tu_bo_map(struct tu_device *dev, struct tu_bo *bo)
if (map == MAP_FAILED)
return vk_error(dev->instance, VK_ERROR_MEMORY_MAP_FAILED);
+ bo->map = map;
return VK_SUCCESS;
}
@@
-1376,7
+1377,7
@@
tu_MapMemory(VkDevice _device,
result = tu_bo_map(device, &mem->bo);
if (result != VK_SUCCESS)
return result;
- mem->map = mem->bo.map;
+
*ppData =
mem->map = mem->bo.map;
} else
*ppData = mem->map;