panfrost: Add kernel-agnostic resource management
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 7 Feb 2019 06:00:11 +0000 (06:00 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 10 Feb 2019 00:44:32 +0000 (00:44 +0000)
commite91e1786c528a604d128180edba9263a029eabe0
tree8a9dd90893c7446fe78e896e1121c97b0b74d4f4
parent4ed23b193a06e2f2293bc9945050ff464ce9d086
panfrost: Add kernel-agnostic resource management

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.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_screen.h