diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-10 22:14:39 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-05 10:43:53 +1000 |
commit | 59f72e158aa0349085ef25900eb1651aa67ec67f (patch) | |
tree | 9968d595d364f3c519714e18f611308281eb755f /src/amd/vulkan/radv_wsi.c | |
parent | a12d288bff2277c9343fa22dd138f49447a8e258 (diff) |
radv: remove radeon_surf_level::pitch_bytes
Like radeonsi. This saves memory, and the information can easily be
recomputed on the fly where necessary.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_wsi.c')
-rw-r--r-- | src/amd/vulkan/radv_wsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c index 5e866126b91..d0ba37761ab 100644 --- a/src/amd/vulkan/radv_wsi.c +++ b/src/amd/vulkan/radv_wsi.c @@ -224,7 +224,7 @@ radv_wsi_image_create(VkDevice device_h, *memory_p = memory_h; *size = image->size; *offset = image->offset; - *row_pitch = surface->level[0].pitch_bytes; + *row_pitch = surface->level[0].nblk_x * surface->bpe; return VK_SUCCESS; fail_alloc_memory: radv_FreeMemory(device_h, memory_h, pAllocator); |