From: Eric Anholt Date: Thu, 5 Dec 2019 05:40:07 +0000 (-0800) Subject: freedreno: Enable texture upload memory throttling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3b249f1665612cab63795cfee4dd54ec7f513f6;p=mesa.git freedreno: Enable texture upload memory throttling. Fixes oom-killer during streaming-texture-upload, which I found while trying to enable piglit in CI. Reviewed-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index c6b2d2447fd..a55c1bcaeb6 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -353,6 +353,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) */ return 128; + case PIPE_CAP_MAX_TEXTURE_UPLOAD_MEMORY_BUDGET: + return 64 * 1024 * 1024; + case PIPE_CAP_SHAREABLE_SHADERS: case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY: /* manage the variants for these ourself, to avoid breaking precompile: */