d6d8bfbb4a
So far we have been caching the first pipeline we produced and always reusing that, which is obviously incorrect. This change implements a proper cache and also takes care of releasing the cached resources when the device is destroyed. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>