pan/decode: Fix helper invocations when tracing
authorIcecream95 <ixn@keemail.me>
Sat, 20 Jun 2020 05:54:19 +0000 (17:54 +1200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 12:15:05 +0000 (12:15 +0000)
commite219f04592373560fe39b7dafd2ef42bbc1124d0
tree2138b8c307ccf9dc8f721aa4caf10c42afc3330a
parent97318994bcc07f2d5bb8a0a432202e88d5ac1503
pan/decode: Fix helper invocations when tracing

midgard1.flags_lo was being changed when tracing, causing helper
invocations to be disabled.

This was found by using mprotect to make BOs read only in
pandecode_fetch_gpu_mem.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5573>
src/panfrost/pandecode/decode.c