panfrost: Add PAN_MESA_DEBUG=sync
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 9 Dec 2019 07:39:59 +0000 (08:39 +0100)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 11 Dec 2019 07:01:20 +0000 (08:01 +0100)
commit63ae9e61c1da83e4972651f46b773799239c4a2c
tree650f0c474f3ccbdf31ba9e1395fab6ba719587e8
parent2e654db27a19a38676e85fd1b37d9ec550783555
panfrost: Add PAN_MESA_DEBUG=sync

Sometimes it's useful to get information about GPU faults in the
console, so it's synchronized with other messages.

This commit will cause Mesa to wait for completion and check if there
are any faults raised by the GPU.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_fragment.c
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_util.h
src/panfrost/pandecode/decode.c
src/panfrost/pandecode/public.h