diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-12-21 00:54:15 +0100 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:01:41 -0700 |
commit | 603354cffa8d98c049ff20567164061e8a4fec17 (patch) | |
tree | 6ec55d2065dcc95fad6e793b3fa66e2fd14b0261 /src/freedreno/vulkan/tu_device.c | |
parent | 426f6e46a80a12fdb47ab04cd657ddc28bf1d60d (diff) |
turnip: Fix memory mapping.
Diffstat (limited to 'src/freedreno/vulkan/tu_device.c')
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 4d676d9147a..b5a8a6f13bc 100644 --- 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; |