panfrost: Only run batch debug when specifically asked
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 23 May 2020 01:49:06 +0000 (21:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 25 May 2020 16:01:18 +0000 (16:01 +0000)
commit1d647b1c48a8a25fd93fbaae5a6119e3f7d09ea5
tree9bcc06ac5a41b08ce67dd1f1ad7103de015dfe4d
parent4c5d1e286003bedc52b92cef74013d2d3bb56f6f
panfrost: Only run batch debug when specifically asked

It's expensive and in a hot path; even for general debug builds we won't
need this, only if we're specifically hacking on batch code.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5202>
src/gallium/drivers/panfrost/pan_job.c