pan/decode: Open the dump file later
authorIcecream95 <ixn@keemail.me>
Thu, 16 Jul 2020 04:12:13 +0000 (16:12 +1200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Jul 2020 21:33:13 +0000 (21:33 +0000)
commit01d60d3d7545150cd5cbdc25a69c8077562fc578
tree9728b1893abc673edef7cd0fe00b32a9f3fc0432
parent4dcbad476eb6dc14bf8f275a49431e36b275d8f1
pan/decode: Open the dump file later

Opening the dump file in pandecode_jc instead of doing it in
pandecode_next_frame avoids creating zero sized files when
applications exit.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5931>
src/panfrost/pandecode/common.c
src/panfrost/pandecode/decode.c
src/panfrost/pandecode/decode.h