backends/drm: Reduce repeated calls to drmModeAdd*

In the drm backends, we paint onto the EglSwapchain slots. These slots have therefore always the same dmabuf coordinates and we can afford to keep it around.

Signed-off-by: Falko Becker falko.becker@mbition.io


Tested at work and on my personal laptop, seems to work fine, hard to tell if there's a big performance impact.

This is hard to measure but it certainly happens in a hot path and requires a number of blocking syscalls to succeed, so it's worth considering its inclusion.

Merge request reports

Loading