panfrost: Only copy resources when they are in a pending batch
authorIcecream95 <ixn@keemail.me>
Thu, 25 Jun 2020 07:51:37 +0000 (19:51 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 06:32:34 +0000 (06:32 +0000)
commitbe5d06106ffd4ec29884d7cfca660b20eeac6f5b
tree8e83cd2130510b81b2c938488c727596b6c380a9
parent66df2ffa36a69265dbb6ab815a93eca6c2a208da
panfrost: Only copy resources when they are in a pending batch

Fixes a performance regression in alacritty, and rendering is still
fine in GLQuake ports.

Fixes: 361fb38662f ("panfrost: Copy resources when mapping to avoid waiting for readers")
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5642>
src/gallium/drivers/panfrost/pan_resource.c