genodelabs / genode

Genode OS Framework
https://genode.org/
Other
1.07k stars 254 forks source link

libports: Memory leak in mesa (21.0.0) on Broadwell platforms #4862

Open ssumpf opened 1 year ago

ssumpf commented 1 year ago

When the HUD is enabled to display, for example, the current FPS in the <config> node of an 3D app

<env key="GALLIUM_HUD" value="fps"/>

it leads to a memory leak of 64 Byte per frame on GEN8 GPUs (Broadwell) only. Since the HUD is meant for debugging/analyzing, one fix is to remove the GALLIUM_HUD from the application. The leak is caused in the function iris_create_surface (src/gallium/drivers/iris/iris_state.c of our Mesa 21.0.0 port) which calls

#if GEN_GEN == 8
alloc_surface_states(...

which is not freed later on.

nfeske commented 5 months ago

@ssumpf is this issue still relevant after the update to Mesa 24?

ssumpf commented 5 months ago

@nfeske: From the source code level it still seems to be an issue. However, I can test it in the office next time and fix it there.