gallium: add an interface for memory allocations.
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 06:24:48 +0000 (16:24 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 04:30:49 +0000 (14:30 +1000)
commite6c7ca218d77e5369d40d76941e7267d81633dc6
tree1dc7c711950f98a7273fc9413d9635084633db06
parent50b039590e19d07607ae0714ebffeed6d4f182d5
gallium: add an interface for memory allocations.

In order to support vulkan over gallium for the sw renderers,
there needs to be a vulkan-like memory allocation API.

It doesn't need to be overly complicated for the needs of the sw
renderers.

The vallium layer will allocate resources and memory separately
and bind them via this API.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6082>
src/gallium/include/pipe/p_screen.h
src/gallium/include/pipe/p_state.h