diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-03-24 18:09:39 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-03-24 18:13:26 +0300 |
commit | d626ced6f1fe8284737aecdabe70b48a42563b75 (patch) | |
tree | f689357de7747f744e70c9532a6bf05b4affc9d6 /source/blender/editors/gpencil/gpencil_data.c | |
parent | 28c3d952dbde6f1e911360f716cb1cdb65863b5e (diff) |
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
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
0 files changed, 0 insertions, 0 deletions