mesa/src
Pierre-Eric Pelloux-Prayer ab54624d0d radeonsi: stop using the VM_ALWAYS_VALID flag
Allocation all the bo as ALWAYS_VALID means they must all fit in memory
(vram + gtt) at each command submission.
This causes some trouble when the total allocated memory is greater than
the available memory.

Possible solutions:
- being able to tag/untag a bo as ALWAYS_VALID: would require kernel changes
- disable VM_ALWAYS_VALID when memory usage is more than a percentage of the
  available memory
- disable VM_ALWAYS_VALID entirely

v1 of this patch implemented option 2. v2 (this version) implements option 3.

Related issues:
 - https://gitlab.freedesktop.org/drm/amd/issues/607
 - https://gitlab.freedesktop.org/mesa/mesa/issues/1257

It also helps with some piglit tests (-t maxsize -t "max[_-].*size" -t maxuniformblocksize):
instead of crashing the machine, the tests fail cleanly.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2190
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3430>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3430>
2020-01-29 09:05:04 +01:00
..
amd radv: enable VK_AMD_shader_fragment_mask on GFX6-GFX7 2020-01-29 08:08:27 +01:00
broadcom util/hash_table: update users to use new optimal integer hash functions 2020-01-23 17:06:57 +00:00
compiler nir: don't emit ishl in _nir_mul_imm() if backend doesn't support bitops 2020-01-23 21:16:22 +00:00
drm-shim drm-shim: fix EOF case 2019-11-13 12:39:14 +00:00
egl egl: drop confusing mincore() error message 2020-01-22 17:55:26 +00:00
etnaviv etnaviv: update Android build files 2020-01-24 14:03:28 +00:00
freedreno freedreno/drm: fix invalid-cmdstream-size with older kernels 2020-01-28 00:09:34 +00:00
gallium radeonsi: stop using the VM_ALWAYS_VALID flag 2020-01-29 09:05:04 +01:00
gbm meson: move the generic symbols check arguments to a common variable 2019-11-05 20:30:47 +00:00
getopt meson: build getopt when using msvc 2019-09-10 20:36:47 +00:00
glx drisw: Cache the depth of the X drawable 2020-01-23 23:03:13 +00:00
gtest meson: gtest needs pthreads 2019-11-07 06:11:19 -08:00
hgl haiku: fix Mesa build 2019-10-01 10:31:02 +00:00
imgui meson: drop intel_ prefix on imgui_core 2019-12-10 15:16:02 +00:00
intel anv: Emit CS Stall before Instruction Cache flush for gen12 WA 2020-01-28 21:57:17 +00:00
loader loader: Check if the kernel driver is i915 before loading iris 2020-01-28 15:35:09 -08:00
mapi glapi / teximage: implement EGLImageTargetTexStorageEXT 2020-01-13 14:57:18 -08:00
mesa mesa/st: Fix compiler warnings from INTEL_shader_integer_functions. 2020-01-28 12:31:03 -08:00
panfrost pan/midgard: Remove float_bitcast 2020-01-27 13:37:36 -05:00
util util/simple_mtx: add a missing include to get ASSERTED 2020-01-24 20:29:29 -05:00
vulkan vulkan/wsi: Fix compiler warning when no WSI platforms are enabled. 2020-01-28 12:30:48 -08:00
meson.build meson: only build imgui when needed 2019-11-25 07:51:56 +00:00
SConscript