Blender Git Commit Log

Git Commits -> Revision d626ced

Revision d626ced by Germano Cavalcante (master)
March 24, 2020, 15:13 (GMT)
GPU: Estimate a better value for the memory used

This commit adds a `mipmaps` member to the `GPUTexture` struct and also
computes to the memory used by these mipmaps and the memory used for
textures that are created from an external bindcode.

So it solves the following inconsistencies:
- The memory value for mipmaps was not being computed.
- As `GPU_texture_from_bindcode` didn't call
`gpu_texture_memory_footprint_add`, it brought inconsistencies to the
value of the used memory, especially when the texture is freed.

Differential Revision: https://developer.blender.org/D3554

Commit Details:

Full Hash: d626ced6f1fe8284737aecdabe70b48a42563b75
Parent Commit: 28c3d95
Lines Changed: +200, -54

1 Modified Path:

/source/blender/gpu/intern/gpu_texture.c (+200, -54) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021