Various methods relating to resource management were previously marked as kernel-specific, forcing them to stay downstream in the vendor overlay and eventually be duplicated for DRM code. This patch adds back this code in kernel-neutral space, allowing for code sharing and minimising the diff to downstream.
e91e1786c52 panfrost: Add kernel-agnostic resource management
src/gallium/drivers/panfrost/pan_resource.c | 183 ++++++++++++++++++++++++++--
src/gallium/drivers/panfrost/pan_screen.h | 4 -
2 files changed, 172 insertions(+), 15 deletions(-)