llvmpipe/fs: add caching support
authorDave Airlie <airlied@redhat.com>
Wed, 13 May 2020 00:45:37 +0000 (10:45 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Jun 2020 20:05:40 +0000 (06:05 +1000)
commitf0d91c9af3b054a94f45fbdc27265aac213c0db4
treeafb560a4ddf1c7f67c8806f57d5e1364f49e95ed
parent1b2e345110ef4f3e56934c0444e37ec9ebdc4bdd
llvmpipe/fs: add caching support

Serialize and check if the object is in the cache, it there is
a cached object skip compilation code once we've constructed
the function interface.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
src/gallium/drivers/llvmpipe/lp_state_fs.c