From e3b249f1665612cab63795cfee4dd54ec7f513f6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 4 Dec 2019 21:40:07 -0800 Subject: [PATCH] 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 --- src/gallium/drivers/freedreno/freedreno_screen.c | 3 +++ 1 file changed, 3 insertions(+) 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: */ -- 2.30.2