diff options
author | Eric Anholt <[email protected]> | 2019-12-04 21:40:07 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-12-06 14:03:50 -0800 |
commit | e3b249f1665612cab63795cfee4dd54ec7f513f6 (patch) | |
tree | 6136eb54cb6c879ee35951e4a4d2b0c2f341200f /src/gallium/drivers/freedreno | |
parent | c496d442844183968f7c4903c8ed549aa990d15f (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: */ |