[Mesa-dev] [PATCH] mesa/mtypes: repack gl_texture_object.

Eero Tamminen eero.t.tamminen at intel.com
Wed Sep 6 14:20:58 UTC 2017


Hi,

On 05.09.2017 19:52, Emil Velikov wrote:
> On 5 September 2017 at 16:50, Brian Paul <brianp at vmware.com> wrote:
>>
>> There's lots of opportunities along these lines in gl_texture_image. And
>> since we often have many gl_texture_images per gl_texture_object, and we
>> often have many textures, it'll probably have considerable impact.  I've
>> suggested this in the past but never got around to working on it.
>>
>> I recall Eric Anholt mentioning a memory profiling tool that was helpful for
>> finding wasted space in structures, etc.  I don't recall the name right now.
>> Eric?
>>
> There's pahole (suspecting that Dave used that for the series)

Pahole does static analysis, it can be used to optimize structures for size.

Valgrind's DHAT tells about the dynamic usage of allocated memory and 
can be used to optimize the structures for performance:
	http://valgrind.org/docs/manual/dh-manual.html


	- Eero

> and PVS-Studio (a proprietary tool).
> Seemingly the latter has a "free" version [1] or one could request
> their project to be scanned [2].
> 
> -Emil
> 
> [1] https://www.viva64.com/en/b/0457/
> [2] https://www.viva64.com/en/b/0473/


More information about the mesa-dev mailing list