v3d: Clear the GMP on initialization of the simulator.
authorEric Anholt <eric@anholt.net>
Thu, 31 Jan 2019 00:22:02 +0000 (16:22 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 19 Feb 2019 02:09:06 +0000 (18:09 -0800)
commit32f16b0b1e1ddaa7b7ab318d9b8323a941887384
tree469a09d55dcae3d3e03dab7a6aa1387ac733aa2e
parentba652394a3269c7e32c3be89eb6275d3bdd18545
v3d: Clear the GMP on initialization of the simulator.

Otherwise, we might have pages accessible that shouldn't be and miss out
on errors.  This is unlikely for most tests since v3d_hw_get_mem() is big
enough that it'll be a freshly zeroed mmap, but if screens are destroyed
and recreated then we'd be reusing the old v3d_hw_get_mem() contents.
src/gallium/drivers/v3d/v3d_simulator.c