lavapipe: add an env var to enable poisoning memory allocations
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 28 Mar 2022 21:39:08 +0000 (17:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Apr 2022 01:14:03 +0000 (01:14 +0000)
commit0be484ece4cedccfa27f1b84b578c5542a634d73
treef3fc5b555691f610cc6b59ed3283dbe478e816ce
parentdcadeb9a4778b12447dd5c37c80731df1fb1d78f
lavapipe: add an env var to enable poisoning memory allocations

it's not random, but it's definitely not zero or any other expected
value, which means it's going to break anything that was passing due to lucky
uninitialized values

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15620>
src/gallium/frontends/lavapipe/lvp_device.c
src/gallium/frontends/lavapipe/lvp_private.h