asahi: Don't crash on VBOs without resources
authorAsahi Lina <lina@asahilina.net>
Wed, 7 Dec 2022 12:43:43 +0000 (21:43 +0900)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 18:10:28 +0000 (18:10 +0000)
commitcea15fe06d9e72c65abcdab73c8e41046d2f79f0
tree050a9aba0c0c3e82e8dd6e627efffe9cfb37f983
parent331c2f4b7e48eb9cd451c3a9b27a664cb01d379a
asahi: Don't crash on VBOs without resources

There's a Firefox QuakeJS heisenbug that triggers this sometimes, by
binding vertex attributes with no buffer...

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20365>
src/gallium/drivers/asahi/agx_uniforms.c