Skip to content

util: use anonymous file for memory fd creation

Thomas Wagner requested to merge thomas.wagner/mesa:use_anon_file into main

The original implementation in os_memory_fd.c always uses memfds. Replace this by using the already existing os_create_anonymous_file in order to support older systems and systems without memfd.

Fixes: 1166ee9c ("gallium: add utility and interface for memory fd allocations")

This should solve #5459 (closed). @jbeich @mareko Could one of you maybe take a look and see if this solves the build issues. Unfortunately I do not have a FreeBSD or older Linux lying around. Sorry for the inconvenience.

Merge request reports