asahi: Implement invalidate_resource
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 24 Nov 2022 16:15:44 +0000 (11:15 -0500)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 11 Dec 2022 02:50:46 +0000 (21:50 -0500)
commit720ff76de4287bd09860a77b4634bad4e89d3ad4
tree34e0061fe389d9859d90bbd7219cff502f78a6bb
parent28b652af801d5d04c60aa3c481a3d11d4c2a686f
asahi: Implement invalidate_resource

From Panfrost. This lets us avoid storing depth/stencil attachments at the end
of the frame in GLES.

On my 4K monitor, glmark2 -btexture at fullscreen goes from 705fps to 1150fps. I
assume gains on real workloads will be smaller.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20123>
src/gallium/drivers/asahi/agx_pipe.c