gallium: add a resource flag to say no over allocation.
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 06:25:49 +0000 (16:25 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 04:30:49 +0000 (14:30 +1000)
commitecb617a6a757a375a66b3c2ad25990011624c41a
tree5d433cfc55a61fa098d3ddaf20d12bcd56fdac3b
parente6c7ca218d77e5369d40d76941e7267d81633dc6
gallium: add a resource flag to say no over allocation.

llvmpipe overallocates buffers for buffers used as render targets,
however this breaks some vulkan apps (UE4), so add a workaround
flag to force llvmpipe to not overallocate certain buffers.

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_defines.h