gallium: add utility and interface for memory fd allocations
authorThomas Wagner <twagner@snap.com>
Wed, 11 Aug 2021 08:17:46 +0000 (10:17 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 Oct 2021 13:49:08 +0000 (13:49 +0000)
commit1166ee9caf3ef8412c1897d926040035981cb4cf
treeceef38b3fab0dd14d95ae9a81d6ebd17c2e293a0
parent0209311c6e8aaed075f6f519706122087e6c33eb
gallium: add utility and interface for memory fd allocations

Add utility functions to allocate aligned memory backed by
mem_fd objects. Add interface to Gallium for same allocation.
It will be used in later commits for external memory support
in Vulkan/OpenGL.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Tested-by: Heinrich Fink <hfink@snap.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12345>
src/gallium/include/pipe/p_screen.h
src/util/meson.build
src/util/os_memory_fd.c [new file with mode: 0644]
src/util/os_memory_fd.h [new file with mode: 0644]
src/util/os_memory_stdc.h