projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c496d44
)
freedreno: Enable texture upload memory throttling.
author
Eric Anholt
<eric@anholt.net>
Thu, 5 Dec 2019 05:40:07 +0000
(21:40 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 6 Dec 2019 22:03:50 +0000
(14:03 -0800)
Fixes oom-killer during streaming-texture-upload, which I found while
trying to enable piglit in CI.
Reviewed-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/freedreno_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/freedreno_screen.c
b/src/gallium/drivers/freedreno/freedreno_screen.c
index c6b2d2447fde95fbd3957118b14e00ea1ffce429..a55c1bcaeb6fc8043b10fcbafeb3711396abe059 100644
(file)
--- 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: */