summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Davy <davyaxel0@gmail.com>2021-04-10 23:01:16 +0200
committerMarge Bot <eric+marge@anholt.net>2021-04-14 08:33:14 +0000
commit53f4766a3ebfdd17dbec66ae77551d8c3f3cce6f (patch)
treed981aa22c7d1aa4fcdaaffd0279c7eb5558034c7
parentb41f1e32e96c973dba8981e8e66e68730aaa35a8 (diff)
st/nine: Lower texture_memory_limit default
512 MB is too ambitious as default value. 128 MB seems safer, and users can increase the limit manually for the few games that would benefit from it. Also fixes a typo in the description Signed-off-by: Axel Davy <davyaxel0@gmail.com> Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
-rw-r--r--src/util/driconf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/driconf.h b/src/util/driconf.h
index dc31d5b0129..1f6c9f95d69 100644
--- a/src/util/driconf.h
+++ b/src/util/driconf.h
@@ -415,8 +415,8 @@
"If set to true, recompile shaders with integer or boolean constants when the values are known. Can cause stutter, but can increase slightly performance.")
#define DRI_CONF_NINE_SHMEM_LIMIT() \
- DRI_CONF_OPT_I(texture_memory_limit, 512, 0, 0, \
- "In MB the limit of virtual memory used for textures until shmem files are unmapped (default 512MB, 32bits only). If negative disables shmem. Set to a low amount to reduce virtual memory usage, but can inccur a small perf hit if too low.")
+ DRI_CONF_OPT_I(texture_memory_limit, 128, 0, 0, \
+ "In MB the limit of virtual memory used for textures until shmem files are unmapped (default 128MB, 32bits only). If negative disables shmem. Set to a low amount to reduce virtual memory usage, but can incur a small perf hit if too low.")
#define DRI_CONF_NINE_FORCESWRENDERINGONCPU(def) \
DRI_CONF_OPT_B(force_sw_rendering_on_cpu, def, \