panfrost: Implement invalidate_resource
Let's follow the strategy as v3d/lima.
Fixes a performance regression since 528e132d
Cc @icecream95
WIP because the initialized=false
bit breaks WebGL aquarium when run with GLES Chromium (--use-gl=egl
). More investigation needed - I suspect we're checking initialized status at the wrong time (?) for reloading the various buffers. v3d doesn't do this..
Edited by Alyssa Rosenzweig