fd/replay: Clear wrbufs after submitting cmdstreams for DRM

Retaining them across submissions was a bug, the wrbuf should only
be dumped for the submission it originates from.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28253>
This commit is contained in:
Mark Collins 2024-03-18 11:02:54 +00:00 committed by Marge Bot
parent 011cacd982
commit 0fad4e547b

View file

@ -611,6 +611,8 @@ device_submit_cmdstreams(struct device *dev)
device_print_cp_log(dev);
device_dump_wrbuf(dev);
u_vector_finish(&dev->wrbufs);
u_vector_init(&dev->wrbufs, 8, sizeof(struct wrbuf));
device_free_buffers(dev);
}