mesa/src/freedreno
Dmitry Baryshkov c8c8c5a3cf freedreno/drm: don't crash in heap allocator when run under valgrind
If Mesa is executed under valgrind, fd_bo_init_common() calls
fd_bo_map() internally. For the heap (sub-block) allocator this causes a
segfault in fd_bo_map(), when this function tries to call the offset()
callback.

To prevent this from happening, preallocate fb->map before calling into
fd_bo_init_common(), stop calling VG_BO_ALLOC() if the memory map is
already initialised and disable the VG_BO_FREE call for the heap
allocator.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26277>
2024-01-04 03:17:46 +00:00
..
.gitlab-ci freedreno/afuc: Decode (sdsN) modifier 2023-12-18 17:01:35 +00:00
afuc freedreno/afuc: Fix gen autodetection for a7xx 2023-12-18 17:01:35 +00:00
ci nir: Optimize fpow with small constant exponents 2024-01-02 11:16:14 +01:00
common freedreno/drm/virtio: Fix typo 2024-01-03 22:28:41 +00:00
computerator freedreno,tu: Add env vars to modify fd_dev_info 2023-11-21 01:33:01 +00:00
decode freedreno/rddecompiler: Add ability to read GPU buffer into file 2024-01-01 18:47:48 +00:00
drm freedreno/drm: don't crash in heap allocator when run under valgrind 2024-01-04 03:17:46 +00:00
drm-shim freedreno: decouple compiler and vulkan driver from gallium 2023-08-03 07:29:36 +00:00
ds freedreno,tu: Add env vars to modify fd_dev_info 2023-11-21 01:33:01 +00:00
fdl freedreno/layout: Add layout metadata 2023-12-22 04:01:12 +00:00
ir2
ir3 ir3/a6xx: fix ldg/stg of ulong2 and ulong4 data 2024-01-04 02:28:09 +00:00
isa ir3: Fix values of #wrmask not being compatible with ir3 parser 2023-10-11 18:35:32 +00:00
perfcntrs freedreno,tu: Add env vars to modify fd_dev_info 2023-11-21 01:33:01 +00:00
registers freedreno/devices: Update a690 magic regs from WSL blob 2024-01-03 17:35:07 +00:00
rnn freedreno/rnn: Remove %n usage in fprintf 2023-09-13 22:20:13 +00:00
vulkan turnip: Disable UBWC for D/S images on A690 2024-01-03 17:35:07 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
.dir-locals.el freedreno: Update editorconfig and emacs settings for freedreno reformat. 2021-05-10 23:16:00 +00:00
.editorconfig freedreno: Update editorconfig and emacs settings for freedreno reformat. 2021-05-10 23:16:00 +00:00
meson.build meson: use allow_fallback instead of manually listing the deps and what they provide 2023-12-28 13:17:25 +00:00