From: Dave Airlie Date: Fri, 19 Jun 2020 06:25:49 +0000 (+1000) Subject: gallium: add a resource flag to say no over allocation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecb617a6a757a375a66b3c2ad25990011624c41a;p=mesa.git 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 Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 88e65ca787e..235c8ec06bc 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -512,6 +512,7 @@ enum pipe_flush_flags #define PIPE_RESOURCE_FLAG_SPARSE (1 << 3) #define PIPE_RESOURCE_FLAG_SINGLE_THREAD_USE (1 << 4) #define PIPE_RESOURCE_FLAG_ENCRYPTED (1 << 5) +#define PIPE_RESOURCE_FLAG_DONT_OVER_ALLOCATE (1 << 6) #define PIPE_RESOURCE_FLAG_DRV_PRIV (1 << 8) /* driver/winsys private */ #define PIPE_RESOURCE_FLAG_FRONTEND_PRIV (1 << 24) /* gallium frontend private */